public class CellSelectionModel<M> extends GridSelectionModel<M>
| Modifier and Type | Class and Description |
|---|---|
class |
CellSelectionModel.CellSelection |
GridSelectionModel.SelectionModelCallback| Constructor and Description |
|---|
CellSelectionModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindGrid(Grid<M> grid)
Binds the given grid to this selection model.
|
void |
deselectAll()
Deselects all selections.
|
CellSelectionModel.CellSelection |
getSelectCell()
Returns the selected cell.
|
M |
getSelectedItem()
Returns the selected item.
|
List<M> |
getSelectedItems()
Returns the selected items.
|
void |
selectCell(int row,
int cell)
Selects the cell.
|
bind, selectNext, selectPreviousaddBeforeSelectionHandler, addSelectionChangedHandler, addSelectionHandler, deselect, deselect, deselect, deselect, deselect, fireEvent, getSelection, getSelectionMode, isLocked, isSelected, refresh, select, select, select, select, select, selectAll, setLocked, setSelection, setSelectionModepublic void bindGrid(Grid<M> grid)
GridSelectionModelbindGrid in class GridSelectionModel<M>grid - the grid to bind to this selection modelpublic void deselectAll()
StoreSelectionModeldeselectAll in interface StoreSelectionModel<M>deselectAll in class AbstractStoreSelectionModel<M>public CellSelectionModel.CellSelection getSelectCell()
public M getSelectedItem()
StoreSelectionModelgetSelectedItem in interface StoreSelectionModel<M>getSelectedItem in class AbstractStoreSelectionModel<M>public List<M> getSelectedItems()
StoreSelectionModelgetSelectedItems in interface StoreSelectionModel<M>getSelectedItems in class AbstractStoreSelectionModel<M>public void selectCell(int row,
int cell)
row - the row indexcell - the cell indexCopyright © 2012. All Rights Reserved.