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 TypeMethodDescriptionvoidResets the entire sort state.voidclearSortState(S propertyName) Clears the sort state for given property.Returns allIGridSortState.ISortStateColumninstances in this state.AbstractGrid<?,?, S> getGrid()getSortStateForProperty(S propertyName) Returns theIGridSortState.ISortStateColumnfor given property or null if there is no such entry.voidsetSortState(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.ISortStateColumnfor given property or null if there is no such entry.- Parameters:
propertyName-- Returns:
IGridSortState.ISortStateColumnfor 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.ISortStateColumninstances in this state.- Specified by:
getColumnsin interfaceIGridSortState<S>- Returns:
- all
IGridSortState.ISortStateColumninstances in this state
-
getGrid
- Specified by:
getGridin interfaceIGridSortState<S>- Returns:
- the related grid, not null
-