public interface IGridSortState<S>
Example of use:
IGridSortState state = ... // acquire sort state
if (state.getColumns().isEmpty() == false) { // at least one column is being sorted
ISortStateColumn column = state.getColumns().get(0); // get the one with highest priority
// property name is what IGridColumn.getSortProperty() returns
String propertyName property = column.getPropertyName();
// direction is either ASC or DESC
IGridSortState.Direction direction = column.getDirection();
}
| Modifier and Type | Interface and Description |
|---|---|
static class |
IGridSortState.Direction
The direction.
|
static interface |
IGridSortState.ISortStateColumn<S>
Pair of property name and
IGridSortState.Direction |
| Modifier and Type | Method and Description |
|---|---|
List<IGridSortState.ISortStateColumn<S>> |
getColumns()
Returns the sort state values for various columns sorted by column priority.
|
AbstractGrid<?,?,S> |
getGrid() |
AbstractGrid<?,?,S> getGrid()
List<IGridSortState.ISortStateColumn<S>> getColumns()
If your business logic supports sorting on one property only, you should sort by the first entry in the result list.
IGridSortState.ISortStateColumn instances that determines the sort state of gridCopyright © 2015. All rights reserved.