|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGridSortState
Allows to query the sort state of a grid. Sort state determines by which properties and in what direction the data should be sorted. This interface allows data to be sorted by multiple properties at the same time.
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();
}
| Nested Class Summary | |
|---|---|
static class |
IGridSortState.Direction
The direction. |
static interface |
IGridSortState.ISortStateColumn
Pair of property name and IGridSortState.Direction |
| Method Summary | |
|---|---|
List<IGridSortState.ISortStateColumn> |
getColumns()
Returns the sort state values for various columns sorted by column priority. |
AbstractGrid<?,?> |
getGrid()
|
| Method Detail |
|---|
AbstractGrid<?,?> getGrid()
List<IGridSortState.ISortStateColumn> 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 grid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||