com.extjs.gxt.ui.client.widget.treegrid
Class CellTreeGridSelectionModel<M extends ModelData>

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseObservable
      extended by com.extjs.gxt.ui.client.widget.selection.AbstractStoreSelectionModel<M>
          extended by com.extjs.gxt.ui.client.widget.grid.GridSelectionModel<M>
              extended by com.extjs.gxt.ui.client.widget.grid.CellSelectionModel<M>
                  extended by com.extjs.gxt.ui.client.widget.treegrid.CellTreeGridSelectionModel<M>
All Implemented Interfaces:
Listener<BaseEvent>, Observable, SelectionProvider<M>, StoreSelectionModel<M>, java.util.EventListener

public class CellTreeGridSelectionModel<M extends ModelData>
extends CellSelectionModel<M>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.grid.CellSelectionModel
CellSelectionModel.CellSelection
 
Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.grid.GridSelectionModel
GridSelectionModel.Callback, GridSelectionModel.Cell
 
Field Summary
protected  java.util.List<M> selectedPreRender
           
protected  TreeGrid tree
           
protected  TreeStore<M> treeStore
           
 
Fields inherited from class com.extjs.gxt.ui.client.widget.grid.CellSelectionModel
selection
 
Fields inherited from class com.extjs.gxt.ui.client.widget.grid.GridSelectionModel
enableNavKeys, grid, grouped, groupingView, keyNav, listStore, selectedGroup, selectedHeader
 
Fields inherited from class com.extjs.gxt.ui.client.widget.selection.AbstractStoreSelectionModel
lastSelected, locked, selected, selectionMode, store, storeListener
 
Constructor Summary
CellTreeGridSelectionModel()
           
 
Method Summary
 void bindGrid(Grid grid)
           
protected  void ensureExpanded(M model)
           
protected  void handleMouseDown(GridEvent<M> e)
           
protected  void hookPreRender(M item, boolean select)
           
protected  void onAdd(java.util.List<? extends M> models)
           
protected  void onKeyLeft(GridEvent<M> ce)
           
protected  void onKeyPress(GridEvent<M> e)
           
protected  void onKeyRight(GridEvent<M> e)
           
protected  void onRender()
           
protected  void onSelectChange(M model, boolean select)
           
 
Methods inherited from class com.extjs.gxt.ui.client.widget.grid.CellSelectionModel
deselectAll, getSelectCell, getSelectedItem, getSelectedItems, handleEvent, onClear, onKeyDown, onKeyUp, onRemove, onRowUpdated, selectCell
 
Methods inherited from class com.extjs.gxt.ui.client.widget.grid.GridSelectionModel
bind, handleColumnHidden, handleMouseClick, hasNext, hasPrevious, isInput, isMoveEditorOnEnter, isSelectable, onEditorKey, onLastFocusChanged, selectNext, selectPrevious, setMoveEditorOnEnter
 
Methods inherited from class com.extjs.gxt.ui.client.widget.selection.AbstractStoreSelectionModel
addSelectionChangedListener, deselect, deselect, deselect, deselect, deselect, doDeselect, doMultiSelect, doSelect, doSingleSelect, fireSelectionChange, getLastFocused, getSelection, getSelectionMode, isLocked, isSelected, onUpdate, refresh, removeSelectionListener, select, select, select, select, select, selectAll, setLastFocused, setLocked, setSelection, setSelectionMode
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tree

protected TreeGrid tree

treeStore

protected TreeStore<M extends ModelData> treeStore

selectedPreRender

protected java.util.List<M extends ModelData> selectedPreRender
Constructor Detail

CellTreeGridSelectionModel

public CellTreeGridSelectionModel()
Method Detail

bindGrid

public void bindGrid(Grid grid)
Overrides:
bindGrid in class CellSelectionModel<M extends ModelData>

ensureExpanded

protected void ensureExpanded(M model)

handleMouseDown

protected void handleMouseDown(GridEvent<M> e)
Overrides:
handleMouseDown in class CellSelectionModel<M extends ModelData>

hookPreRender

protected void hookPreRender(M item,
                             boolean select)

onAdd

protected void onAdd(java.util.List<? extends M> models)
Overrides:
onAdd in class AbstractStoreSelectionModel<M extends ModelData>

onKeyPress

protected void onKeyPress(GridEvent<M> e)
Overrides:
onKeyPress in class CellSelectionModel<M extends ModelData>

onKeyLeft

protected void onKeyLeft(GridEvent<M> ce)
Overrides:
onKeyLeft in class GridSelectionModel<M extends ModelData>

onKeyRight

protected void onKeyRight(GridEvent<M> e)
Overrides:
onKeyRight in class GridSelectionModel<M extends ModelData>

onRender

protected void onRender()

onSelectChange

protected void onSelectChange(M model,
                              boolean select)
Overrides:
onSelectChange in class GridSelectionModel<M extends ModelData>