Package com.inmethod.grid.common
Class GridSortState<S>
java.lang.Object
com.inmethod.grid.common.GridSortState<S>
- All Implemented Interfaces:
IGridSortState<S>
,Serializable
,IClusterable
An
IGridSortState
implementation.- Author:
- Matej Knopp
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inmethod.grid.IGridSortState
IGridSortState.Direction, IGridSortState.ISortStateColumn<S>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Resets the entire sort state.void
clearSortState
(S propertyName) Clears the sort state for given property.Returns allIGridSortState.ISortStateColumn
instances in this state.AbstractGrid<?,
?, S> getGrid()
getSortStateForProperty
(S propertyName) Returns theIGridSortState.ISortStateColumn
for given property or null if there is no such entry.void
setSortState
(S propertyName, IGridSortState.Direction direction) Sets the sort direction for given property name.
-
Constructor Details
-
GridSortState
Constructor.- Parameters:
grid
- the related grid, not null
-
-
Method Details
-
clearSortState
public void clearSortState()Resets the entire sort state. -
clearSortState
Clears the sort state for given property.- Parameters:
propertyName
-
-
getSortStateForProperty
Returns theIGridSortState.ISortStateColumn
for given property or null if there is no such entry.- Parameters:
propertyName
-- Returns:
IGridSortState.ISortStateColumn
for given property or null if there is no such entry
-
setSortState
Sets the sort direction for given property name.- Parameters:
propertyName
-direction
-
-
getColumns
Returns allIGridSortState.ISortStateColumn
instances in this state.- Specified by:
getColumns
in interfaceIGridSortState<S>
- Returns:
- all
IGridSortState.ISortStateColumn
instances in this state
-
getGrid
- Specified by:
getGrid
in interfaceIGridSortState<S>
- Returns:
- the related grid, not null
-