at.spardat.xma.mdl.table
Class TableUIDelegateClient.RowComparator
java.lang.Object
at.spardat.xma.mdl.table.TableUIDelegateClient.RowComparator
- All Implemented Interfaces:
- java.util.Comparator
- Enclosing class:
- TableUIDelegateClient
- public class TableUIDelegateClient.RowComparator
- extends java.lang.Object
- implements java.util.Comparator
To compare two entries of the sortPermutation instance variable
|
Method Summary |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
TableUIDelegateClient.RowComparator
public TableUIDelegateClient.RowComparator(TransAtomTable table,
int sortingCol,
boolean ascending,
java.text.Collator collator,
XMATableColumn.AtomComparator comparator)
- Constructor
- Parameters:
table - the TransAtomTable of the widget model that holds the rowssortingCol - index of the column which determines sort orderascending - true if sorting is in ascending ordercollator - used to sort strings
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Specified by:
compare in interface java.util.Comparator
- See Also:
Comparator.compare(java.lang.Object, java.lang.Object)