protected class FilterPipeline.SorterBasedSortController extends java.lang.Object implements SortController
Modifier | Constructor and Description |
---|---|
protected |
FilterPipeline.SorterBasedSortController() |
Modifier and Type | Method and Description |
---|---|
protected Sorter |
createDefaultSorter() |
protected Sorter |
createDefaultSorter(SortKey sortKey)
creates a Sorter initialized with sortKey
|
java.util.List<? extends SortKey> |
getSortKeys()
List the sort order by column.
|
SortOrder |
getSortOrder(int column)
Get the sort order of the specified column.
|
void |
setSortKeys(java.util.List<? extends SortKey> keys)
Set the sort order by column.
|
void |
toggleSortOrder(int column)
Reverses the sort order of the specified column.
|
void |
toggleSortOrder(int column,
java.util.Comparator comparator)
Reverses the sort order of the specified column.
|
protected FilterPipeline.SorterBasedSortController()
public void toggleSortOrder(int column)
SortController
toggleSortOrder
in interface SortController
column
- the model index of the column to togglepublic void toggleSortOrder(int column, java.util.Comparator comparator)
SortController
toggleSortOrder
in interface SortController
column
- the model index of the column to togglecomparator
- the comparator to usepublic void setSortKeys(java.util.List<? extends SortKey> keys)
SortController
setSortKeys
in interface SortController
protected Sorter createDefaultSorter(SortKey sortKey)
sortKey
- the properties to useSorter
initialized with the specified sortKey
protected Sorter createDefaultSorter()
public java.util.List<? extends SortKey> getSortKeys()
SortController
getSortKeys
in interface SortController
public SortOrder getSortOrder(int column)
SortController
getSortOrder
in interface SortController
SortOrder.ASCENDING
,
SortOrder.DESCENDING
or SortOrder.UNSORTED
.