edu.washington.cs.pl_if.gui.table
Class GenericRowComparator<Type extends TableRow>
java.lang.Object
edu.washington.cs.pl_if.gui.table.GenericRowComparator<Type>
- All Implemented Interfaces:
- RowComparator<Type>, Comparator<Type>
public class GenericRowComparator<Type extends TableRow>
- extends Object
- implements RowComparator<Type>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericRowComparator
public GenericRowComparator()
compare
public int compare(Type r1,
Type r2)
- Specified by:
compare
in interface RowComparator<Type extends TableRow>
- Specified by:
compare
in interface Comparator<Type extends TableRow>
reverseDirection
public void reverseDirection()
- Description copied from interface:
RowComparator
- Reverses the direction
- Specified by:
reverseDirection
in interface RowComparator<Type extends TableRow>
setColumn
public void setColumn(int column)
- Description copied from interface:
RowComparator
- Sets the column for sorting
- Specified by:
setColumn
in interface RowComparator<Type extends TableRow>
- Parameters:
column
- the column
setDirection
public void setDirection(int direction)
- Description copied from interface:
RowComparator
- Sets the direction for sorting
- Specified by:
setDirection
in interface RowComparator<Type extends TableRow>
- Parameters:
direction
- the direction