pivot.wtk
Class TableView.RowComparator

java.lang.Object
  extended by pivot.wtk.TableView.RowComparator
All Implemented Interfaces:
Comparator<Object>
Enclosing class:
TableView

public static final class TableView.RowComparator
extends Object
implements Comparator<Object>

Compares two rows. The dictionary values must implement Comparable.

TODO Allow a caller to sort on multiple columns.


Constructor Summary
TableView.RowComparator(String columnName, SortDirection sortDirection)
           
 
Method Summary
 int compare(Object o1, 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

TableView.RowComparator

public TableView.RowComparator(String columnName,
                               SortDirection sortDirection)
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator<Object>