public class TreeGridSelectionModel<M> extends GridSelectionModel<M>
GridSelectionModel.SelectionModelCallback
Modifier and Type | Field and Description |
---|---|
protected TreeGrid<M> |
tree |
protected TreeStore<M> |
treeStore |
deselectOnSimpleClick, enableNavKeys, grid, handlerRegistration, keyNav, listStore
fireSelectionChangeOnClick, lastSelected, locked, mouseDown, selected, selectionMode, store
Constructor and Description |
---|
TreeGridSelectionModel() |
Modifier and Type | Method and Description |
---|---|
void |
bind(Store<M> store)
Binds the store to the selection model.
|
void |
bindGrid(Grid<M> grid)
Binds the given grid to this selection model.
|
TreeGrid<M> |
getTreeGrid()
Returns the currently bound tree grid.
|
protected void |
onKeyLeft(NativeEvent ce)
Handles a key left event (e.g.
|
protected void |
onKeyRight(NativeEvent ce)
Handles a key right event (e.g.
|
getGrid, hasNext, hasPrevious, isSelectable, onKeyDown, onKeyPress, onKeyUp, onLastFocusChanged, onRecordChange, onRowClick, onRowMouseDown, onSelectChange, onUpdate, selectNext, selectPrevious
addBeforeSelectionHandler, addSelectionChangedHandler, addSelectionHandler, deselect, deselect, deselect, deselect, deselect, deselectAll, doDeselect, doMultiSelect, doSelect, doSingleSelect, ensureHandlers, fireEvent, fireSelectionChange, getLastFocused, getSelectedItem, getSelectedItems, getSelection, getSelectionMode, isLocked, isSelected, onAdd, onClear, onRemove, refresh, select, select, select, select, select, selectAll, setLastFocused, setLocked, setSelection, setSelectionMode
public void bind(Store<M> store)
StoreSelectionModel
bind
in interface StoreSelectionModel<M>
bind
in class GridSelectionModel<M>
store
- the bound storepublic void bindGrid(Grid<M> grid)
GridSelectionModel
bindGrid
in class GridSelectionModel<M>
grid
- the grid to bind to this selection modelpublic TreeGrid<M> getTreeGrid()
protected void onKeyLeft(NativeEvent ce)
GridSelectionModel
onKeyLeft
in class GridSelectionModel<M>
ce
- the key left eventprotected void onKeyRight(NativeEvent ce)
GridSelectionModel
onKeyRight
in class GridSelectionModel<M>
ce
- the key right eventCopyright © 2018. All rights reserved.