com.extjs.gxt.ui.client.widget.grid
Class CellSelectionModel<M extends ModelData>
java.lang.Object
com.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.widget.selection.AbstractStoreSelectionModel<M>
com.extjs.gxt.ui.client.widget.grid.GridSelectionModel<M>
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.
| 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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CellSelectionModel
public CellSelectionModel()
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 indexcell - the cell index