public interface SortableTableModel extends TableModel
TableSorter
Modifier and Type | Field and Description |
---|---|
static int |
UNSORTED |
Modifier and Type | Method and Description |
---|---|
int |
getSortOnColumn()
Returns the sort column, or
UNSORTED if no sort currently in effect. |
boolean |
isSortAscending() |
void |
sort(int column,
boolean ascending)
Sort the table model using the given column.
|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
static final int UNSORTED
void sort(int column, boolean ascending)
column
- The index of the column to sort on, or UNSORTED if no sort is necessary.ascending
- If true
sort in ascending order, else sort in descending order.boolean isSortAscending()
int getSortOnColumn()
UNSORTED
if no sort currently in effect.Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.