edu.washington.cs.pl_if.gui.table
Interface RowComparator<T extends TableRow>

All Superinterfaces:
Comparator<T>
All Known Implementing Classes:
CommandRowComparator, GenericRowComparator, HostRowComparator

public interface RowComparator<T extends TableRow>
extends Comparator<T>


Field Summary
static int ASCENDING
          Constant for ascending
static int DESCENDING
          Constant for descending
 
Method Summary
 int compare(T r1, T r2)
           
 void reverseDirection()
          Reverses the direction
 void setColumn(int column)
          Sets the column for sorting
 void setDirection(int direction)
          Sets the direction for sorting
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

ASCENDING

static final int ASCENDING
Constant for ascending

See Also:
Constant Field Values

DESCENDING

static final int DESCENDING
Constant for descending

See Also:
Constant Field Values
Method Detail

compare

int compare(T r1,
            T r2)
Specified by:
compare in interface Comparator<T extends TableRow>

reverseDirection

void reverseDirection()
Reverses the direction


setColumn

void setColumn(int column)
Sets the column for sorting

Parameters:
column - the column

setDirection

void setDirection(int direction)
Sets the direction for sorting

Parameters:
direction - the direction