|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sciapp.table.SortState
public class SortState
SortState is a class that holds information about the sorting state of a table column. This class is used by SortTableModel to keep track of sorting.
Constructor Summary | |
---|---|
SortState(int field)
Constructs a SortState with field indicating the view index of the table column
that we want to sort. |
|
SortState(int field,
boolean ascending)
Constructs a SortState with field indicating the view index of the table column
that we want to sort. |
Method Summary | |
---|---|
void |
flip()
Flips the sorting order of the SortState. |
int |
getField()
Returns the field that corresponds to the view index of the table column. |
boolean |
isAscending()
Returns true if the sorting is in ascending order. |
String |
toString()
Returns a string representation of the sort state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SortState(int field)
field
indicating the view index of the table column
that we want to sort. The sorting is in ascending order.
public SortState(int field, boolean ascending)
field
indicating the view index of the table column
that we want to sort. The sorting is in ascending order if ascending
is true.
Method Detail |
---|
public void flip()
public int getField()
public boolean isAscending()
public String toString()
toString
in class Object
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |