public class GridSortState<S> extends Object implements IGridSortState<S>, org.apache.wicket.util.io.IClusterable
IGridSortState implementation.IGridSortState,
Serialized FormIGridSortState.Direction, IGridSortState.ISortStateColumn<S>| Constructor and Description |
|---|
GridSortState(AbstractGrid<?,?,S> grid)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearSortState()
Resets the entire sort state.
|
void |
clearSortState(S propertyName)
Clears the sort state for given property.
|
List<IGridSortState.ISortStateColumn<S>> |
getColumns()
Returns all
IGridSortState.ISortStateColumn instances in this state. |
AbstractGrid<?,?,S> |
getGrid() |
IGridSortState.ISortStateColumn<S> |
getSortStateForProperty(S propertyName)
Returns the
IGridSortState.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.
|
public GridSortState(AbstractGrid<?,?,S> grid)
grid - the related grid, not nullpublic void clearSortState()
public void clearSortState(S propertyName)
propertyName - public IGridSortState.ISortStateColumn<S> getSortStateForProperty(S propertyName)
IGridSortState.ISortStateColumn for given property or null if there is no
such entry.propertyName - IGridSortState.ISortStateColumn for given property or null if there is no
such entrypublic void setSortState(S propertyName, IGridSortState.Direction direction)
propertyName - direction - public List<IGridSortState.ISortStateColumn<S>> getColumns()
IGridSortState.ISortStateColumn instances in this state.getColumns in interface IGridSortState<S>IGridSortState.ISortStateColumn instances in this statepublic AbstractGrid<?,?,S> getGrid()
getGrid in interface IGridSortState<S>Copyright © 2015. All rights reserved.