R
- the type representing a row in the table modelC
- the type representing the column identifiers in the table modelpublic interface FilteredTableSortModel<R,C>
FilteredTableModel
.Modifier and Type | Interface and Description |
---|---|
static interface |
FilteredTableSortModel.ColumnSortOrder<C>
Specifies a sorting state for a column.
|
Modifier and Type | Method and Description |
---|---|
void |
addSortingChangedListener(EventDataListener<C> listener) |
void |
addSortOrder(C columnIdentifier,
SortOrder sortOrder)
Adds the given column sorting order to the currently sorted columns.
|
void |
clear()
Clears the sorting states from this sort model.
|
List<FilteredTableSortModel.ColumnSortOrder<C>> |
columnSortOrder()
Returns the current column sort order, in order of priority
|
boolean |
isSortingEnabled() |
void |
setSortOrder(C columnIdentifier,
SortOrder sortOrder)
Clears the sorting state and adds the given column sorting order.
|
void |
sort(List<R> items)
Sorts the given list according to the sort configuration
|
SortOrder |
sortOrder(C columnIdentifier) |
int |
sortPriority(C columnIdentifier) |
void sort(List<R> items)
items
- the items to sortvoid setSortOrder(C columnIdentifier, SortOrder sortOrder)
columnIdentifier
- the identifier of the column to sort bysortOrder
- the sorting orderaddSortOrder(Object, SortOrder)
,
sortOrder(Object)
void addSortOrder(C columnIdentifier, SortOrder sortOrder)
setSortOrder(Object, SortOrder)
.columnIdentifier
- the identifier of the column to sort bysortOrder
- the sorting ordersetSortOrder(Object, SortOrder)
,
sortOrder(Object)
SortOrder sortOrder(C columnIdentifier)
columnIdentifier
- the column identifierSortOrder
associated with the given columnint sortPriority(C columnIdentifier)
columnIdentifier
- the column identifierboolean isSortingEnabled()
List<FilteredTableSortModel.ColumnSortOrder<C>> columnSortOrder()
void clear()
void addSortingChangedListener(EventDataListener<C> listener)
listener
- a listener notified each time the sorting state changes, with the column identifier as event data