|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JvSortableTableModel
A TableModel that supports sorting rows by their columns.
| Method Summary | |
|---|---|
TableModel |
getModel()
Return the true model that contains the table data. |
int |
getSortColumn()
Returns the table model index of the column the model is sorted on. |
boolean |
isAscending()
Return whether the sort is ascending or descending. |
void |
setAscending(boolean ascending)
Set whether the sort is ascending or descending. |
void |
setSortColumn(int columnIndex)
Sort the rows by the column with the specified table model index. |
void |
sortByColumn(int columnIndex,
boolean ascending)
Set the column to sort by and whether the sort is ascending or descending in one swoop. |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
| Method Detail |
|---|
TableModel getModel()
void setSortColumn(int columnIndex)
columnIndex - the index of the column, or -1 for no sortingint getSortColumn()
void setAscending(boolean ascending)
ascending - true if the sort is ascending, false otherwiseboolean isAscending()
void sortByColumn(int columnIndex,
boolean ascending)
setSortColumn(int) and a call to setAscending(boolean) but only
causes a single sort of the data instead of two.
columnIndex - the index of the column, or -1 for no sortingascending - true if the sort is ascending, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||