|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SortableModel
Defines the requirements for tables that can be sorted.
TableHeaderHandler
Method Summary | |
---|---|
java.lang.Class |
getColumnClass(int index)
Returns the class of the data objects in column at index . |
int |
getSortedColumn()
Returns the index of the column that was sorted last. |
boolean |
isSortedAscending()
Returns true, if the table is sorted in ascending order. |
void |
setMaintainSortOrder(boolean maintainSortOrder)
Sets the maintain sort order flag. |
boolean |
sortByColumn(int column,
boolean ascending,
boolean revert)
Sort the table by column . |
Method Detail |
---|
java.lang.Class getColumnClass(int index)
index
.
TableHeaderHandler.sortByColumn(int)
int getSortedColumn()
boolean isSortedAscending()
void setMaintainSortOrder(boolean maintainSortOrder)
boolean sortByColumn(int column, boolean ascending, boolean revert)
column
.
column
- the column to sortascending
- true, if table needs to be sorted in ascending order;
false, if in descending orderrevert
- automatically revert sort order
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |