at.spardat.xma.mdl.table
Class TableUIDelegateClient.RowComparator

java.lang.Object
  extended byat.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


Constructor Summary
TableUIDelegateClient.RowComparator(TransAtomTable table, int sortingCol, boolean ascending, java.text.Collator collator, XMATableColumn.AtomComparator comparator)
          Constructor
 
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
 

Constructor Detail

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 rows
sortingCol - index of the column which determines sort order
ascending - true if sorting is in ascending order
collator - used to sort strings
Method Detail

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)