com.sencha.gxt.widget.core.client.grid
Class CheckBoxSelectionModel<M>

java.lang.Object
  extended by com.sencha.gxt.widget.core.client.selection.AbstractStoreSelectionModel<M>
      extended by com.sencha.gxt.widget.core.client.grid.GridSelectionModel<M>
          extended by com.sencha.gxt.widget.core.client.grid.CheckBoxSelectionModel<M>
Type Parameters:
M - the model data type
All Implemented Interfaces:
HasBeforeSelectionHandlers<M>, HasSelectionHandlers<M>, HasHandlers, SelectionChangedEvent.HasSelectionChangedHandlers<M>, StoreSelectionModel<M>

public class CheckBoxSelectionModel<M>
extends GridSelectionModel<M>

A grid selection model. To use, add the column config to the column model using getColumn().

This selection mode defaults to SelectionMode.MULTI and also supports SelectionMode.SIMPLE. With SIMPLE, the control and shift keys do not need to be pressed for multiple selections.


Nested Class Summary
static interface CheckBoxSelectionModel.CheckBoxColumnAppearance<M>
           
 
Nested classes/interfaces inherited from class com.sencha.gxt.widget.core.client.grid.GridSelectionModel
GridSelectionModel.SelectionModelCallback
 
Constructor Summary
CheckBoxSelectionModel(IdentityValueProvider<M> valueProvider)
           
 
Method Summary
 void bindGrid(Grid<M> grid)
          Binds the given grid to this selection model.
 ColumnConfig<M,M> getColumn()
          Returns the column config.
 
Methods inherited from class com.sencha.gxt.widget.core.client.grid.GridSelectionModel
bind, selectNext, selectPrevious
 
Methods inherited from class com.sencha.gxt.widget.core.client.selection.AbstractStoreSelectionModel
addBeforeSelectionHandler, addSelectionChangedHandler, addSelectionHandler, deselect, deselect, deselect, deselect, deselect, deselectAll, fireEvent, getSelectedItem, getSelectedItems, getSelection, getSelectionMode, isLocked, isSelected, refresh, 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
 

Constructor Detail

CheckBoxSelectionModel

public CheckBoxSelectionModel(IdentityValueProvider<M> valueProvider)
Method Detail

bindGrid

public void bindGrid(Grid<M> grid)
Description copied from class: GridSelectionModel
Binds the given grid to this selection model.

Overrides:
bindGrid in class GridSelectionModel<M>
Parameters:
grid - the grid to bind to this selection model

getColumn

public ColumnConfig<M,M> getColumn()
Returns the column config.

Returns:
the column config


Copyright © 2012. All Rights Reserved.