|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SortableTableModel
Method Summary | |
---|---|
void |
addCriterium(int columnIndex,
boolean isAscent,
boolean clearExisting)
Add a sort criterium (i.e. |
Comparable |
getComparableAt(int row,
int col)
|
int |
getSortDirection(int column)
Return the sort direction for the given column: 0: the column is not considered for sorting 1: the column is sorted in ascending order -1: the column is sorted in descending order. |
int |
getSortPriority(int column)
Get the sort priority for a given column. |
boolean |
isColumnSortable(TableColumn column)
Is this column sortable? |
void |
resort()
Resort the model by the criteria. |
void |
swapRows(int row1,
int row2)
|
Methods inherited from interface javax.swing.table.TableModel |
---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
Method Detail |
---|
Comparable getComparableAt(int row, int col)
void swapRows(int row1, int row2)
void addCriterium(int columnIndex, boolean isAscent, boolean clearExisting)
columnIndex
- the column index to sort afterisAscent
- true: ascenden; false: descendentclearExisting
- if true: remove previous criteria; false: add to existing
criteriaint getSortPriority(int column)
column
- int getSortDirection(int column)
column
- boolean isColumnSortable(TableColumn column)
column
-
void resort()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |