|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to specify methods for a sortable rows datasource.
Field Summary | |
static int |
FORWARD
Valid value for SortOrder. |
static int |
REVERSE
Valid value for SortOrder. |
Method Summary | |
boolean |
getAutoSort()
Returns whether the data is automatically sorted according to the current comparator whenever a data change occurs. |
int[] |
getKeyColumns(int column)
Returns the key columns used to sort the table model when clicking on the specified column. |
int |
getSortColumn()
Gets the sorting column. |
int |
getSortOrder()
Gets the sorting order to use the next time a sort is performed. |
boolean |
isDataSorted()
Returns whether or not the data set is currently sorted. |
void |
setAutoSort(boolean autoSort)
Sets whether the data should be automatically sorted when it changes. |
void |
setDataSorted(boolean sorted)
Sorts data by current column if set to true and the data needs
sorting; returns the data set to its native unsorted state if set to
false . |
void |
setKeyColumns(int column,
int[] keyColumns)
Sets the key columns used to sort the table model when clicking on a specified column. |
void |
setSortColumn(int column)
Sets the column to use the next time a sort is performed. |
void |
setSortOrder(int order)
Sets the sorting order. |
void |
toggleSortOrder()
Toggles the sorting order. |
Field Detail |
public static final int FORWARD
public static final int REVERSE
Method Detail |
public boolean getAutoSort()
public void setAutoSort(boolean autoSort)
autoSort
- public void setKeyColumns(int column, int[] keyColumns)
column
- index of column in TableModel
keyColumns
- columns to use as keys to sort when sorting
on the specified columnpublic int[] getKeyColumns(int column)
column
-
public boolean isDataSorted()
public void setDataSorted(boolean sorted)
true
and the data needs
sorting; returns the data set to its native unsorted state if set to
false
.
sorted
- public int getSortColumn()
public void setSortColumn(int column)
column
- only valid column indicies are allowedpublic int getSortOrder()
public void setSortOrder(int order)
order
- public void toggleSortOrder()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |