|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A sortable table model interface
Method Summary | |
int |
getSortedColumnIndex()
Returns the sorted column, or -1 if no column is sorted |
boolean |
isAscending()
Returns true if it's ascending order |
boolean |
isSortable(int column)
Determines if the passed column is sortable or not |
void |
setSortByColumn(int column,
boolean ascending)
Sets the sorting order of colum |
Methods inherited from interface javax.swing.table.TableModel |
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
Method Detail |
public boolean isSortable(int column)
column
is sortable or not
public void setSortByColumn(int column, boolean ascending)
colum
column
- colum indexascending
- if true, sort the specified column into ascending orderpublic boolean isAscending()
public int getSortedColumnIndex()
|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |