public interface ISortModel
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove all sorting
|
List<Comparator> |
getComparatorsForColumnIndex(int columnIndex) |
SortDirectionEnum |
getSortDirection(int columnIndex) |
List<Integer> |
getSortedColumnIndexes() |
int |
getSortOrder(int columnIndex) |
boolean |
isColumnIndexSorted(int columnIndex) |
void |
sort(int columnIndex,
SortDirectionEnum sortDirection,
boolean accumulate)
This method is called by the
SortCommandHandler in response to a sort command. |
List<Integer> getSortedColumnIndexes()
boolean isColumnIndexSorted(int columnIndex)
SortDirectionEnum getSortDirection(int columnIndex)
int getSortOrder(int columnIndex)
Example: If column indexes 3, 6, 9 are sorted (in that order) the sort order for index 6 is 1.
List<Comparator> getComparatorsForColumnIndex(int columnIndex)
void sort(int columnIndex, SortDirectionEnum sortDirection, boolean accumulate)
SortCommandHandler
in response to a sort command.
It is responsible for sorting the requested column.accumulate
- flag indicating if the column should added to a previous sort.void clear()
Copyright © 2013. All Rights Reserved.