public interface SortableTable
Modifier and Type | Method and Description |
---|---|
int |
getSortColumn()
Returns the sort column.
|
TableModel |
getUnsortedModel()
returns the underlying model, can be null.
|
boolean |
isAscending()
Returns whether sorting is ascending or not.
|
boolean |
isSorted()
returns whether the table was sorted.
|
void |
setUnsortedModel(TableModel value)
Sets the base model to use.
|
void |
sort(int columnIndex)
sorts the table over the given column (ascending).
|
void |
sort(int columnIndex,
boolean ascending)
sorts the table over the given column, either ascending or descending.
|
void setUnsortedModel(TableModel value)
value
- the base modelTableModel getUnsortedModel()
boolean isSorted()
int getSortColumn()
boolean isAscending()
isSorted()
,
getSortColumn()
void sort(int columnIndex)
columnIndex
- the column to sort overvoid sort(int columnIndex, boolean ascending)
columnIndex
- the column to sort overascending
- ascending if true, otherwise descendingCopyright © 2017. All Rights Reserved.