com.extjs.gxt.ui.client.widget.grid
Class CellSelectionModel<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>
Type Parameters:
M - the model type
All Implemented Interfaces:
Listener<BaseEvent>, Observable, SelectionProvider<M>, StoreSelectionModel<M>, java.util.EventListener

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

Cell based selection model for a grid.


Nested Class Summary
 class CellSelectionModel.CellSelection
           
 
Constructor Summary
CellSelectionModel()
           
 
Method Summary
 void bindGrid(Grid grid)
           
 void deselectAll()
          Deselects all selections.
 CellSelectionModel.CellSelection getSelectCell()
          Returns the selected cell.
 void handleEvent(BaseEvent e)
          Sent when an event that the listener has registered for occurs.
 void selectCell(int row, int cell)
          Selects the cell.
 
Methods inherited from class com.extjs.gxt.ui.client.widget.grid.GridSelectionModel
isLocked, selectNext, selectPrevious
 
Methods inherited from class com.extjs.gxt.ui.client.widget.selection.AbstractStoreSelectionModel
addSelectionChangedListener, bind, deselect, deselect, deselect, deselect, deselect, getSelectedItem, getSelectedItems, getSelection, getSelectionMode, isSelected, refresh, removeSelectionListener, select, select, select, select, select, selectAll, setLocked, setSelection, setSelectionMode
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable
addListener, fireEvent, fireEvent, getFiresEvents, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellSelectionModel

public CellSelectionModel()
Method Detail

bindGrid

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

deselectAll

public void deselectAll()
Description copied from interface: StoreSelectionModel
Deselects all selections.

Specified by:
deselectAll in interface StoreSelectionModel<M extends ModelData>
Overrides:
deselectAll in class AbstractStoreSelectionModel<M extends ModelData>

getSelectCell

public CellSelectionModel.CellSelection getSelectCell()
Returns the selected cell.

Returns:
the selection cell

handleEvent

public void handleEvent(BaseEvent e)
Description copied from interface: Listener
Sent when an event that the listener has registered for occurs.

Specified by:
handleEvent in interface Listener<BaseEvent>
Overrides:
handleEvent in class GridSelectionModel<M extends ModelData>
Parameters:
e - the event which occurred

selectCell

public void selectCell(int row,
                       int cell)
Selects the cell.

Parameters:
row - the row index
cell - the cell index