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)
SortControllertoggleSortOrder in interface SortControllercolumn - the model index of the column to togglepublic void toggleSortOrder(int column,
java.util.Comparator comparator)
SortControllertoggleSortOrder in interface SortControllercolumn - the model index of the column to togglecomparator - the comparator to usepublic void setSortKeys(java.util.List<? extends SortKey> keys)
SortControllersetSortKeys in interface SortControllerprotected Sorter createDefaultSorter(SortKey sortKey)
sortKey - the properties to useSorter initialized with the specified sortKeyprotected Sorter createDefaultSorter()
public java.util.List<? extends SortKey> getSortKeys()
SortControllergetSortKeys in interface SortControllerpublic SortOrder getSortOrder(int column)
SortControllergetSortOrder in interface SortControllerSortOrder.ASCENDING,
SortOrder.DESCENDING or SortOrder.UNSORTED.