M
- the grid model typepublic class GridStateHandler<M> extends ComponentStateHandler<GridStateHandler.GridState,Grid<M>>
Modifier and Type | Class and Description |
---|---|
static interface |
GridStateHandler.GridSortState |
static interface |
GridStateHandler.GridState |
Constructor and Description |
---|
GridStateHandler(Class<GridStateHandler.GridState> stateType,
Grid<M> component,
String key)
Creates a new grid state handler instance.
|
GridStateHandler(Grid<M> component)
Creates a nbew grid state handler instance.
|
GridStateHandler(Grid<M> component,
String key)
Creates a new state handler instance.
|
Modifier and Type | Method and Description |
---|---|
void |
applyState()
Applies the currently loaded state to the current stateful object.
|
protected <V> Store.StoreSortInfo<M> |
createStoreSortInfo(ListStore<M> ds,
ColumnConfig<M,V> column,
SortDir sortDir) |
protected void |
handleColumnHiddenChange(ColumnHiddenChangeEvent event) |
protected void |
handleColumnWidthChange(ColumnWidthChangeEvent event) |
protected void |
handleSortChange(SortChangeEvent event) |
protected void |
init(Grid<M> component) |
addBeforeRestoreStateHandler, addBeforeSaveStateHandler, addRestoreStateHandler, addSaveStateHandler, getObject, getState, handleLoadState, loadState, saveState
public GridStateHandler(Class<GridStateHandler.GridState> stateType, Grid<M> component, String key)
stateType
- the state typecomponent
- the gridkey
- the state keypublic GridStateHandler(Grid<M> component)
component
- the gridpublic void applyState()
AbstractStateHandler
applyState
in class AbstractStateHandler<GridStateHandler.GridState,Grid<M>>
protected <V> Store.StoreSortInfo<M> createStoreSortInfo(ListStore<M> ds, ColumnConfig<M,V> column, SortDir sortDir)
protected void handleColumnHiddenChange(ColumnHiddenChangeEvent event)
protected void handleColumnWidthChange(ColumnWidthChangeEvent event)
protected void handleSortChange(SortChangeEvent event)
Copyright © 2018. All rights reserved.