com.sencha.gxt.widget.core.client.grid
Class GridSelectionModel<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>
All Implemented Interfaces:
HasBeforeSelectionHandlers<M>, HasSelectionHandlers<M>, HasHandlers, SelectionChangedEvent.HasSelectionChangedHandlers<M>, StoreSelectionModel<M>
Direct Known Subclasses:
CellSelectionModel, CheckBoxSelectionModel, TreeGridSelectionModel

public class GridSelectionModel<M>
extends AbstractStoreSelectionModel<M>

Grid selection model.

Inherited Events:
AbstractStoreSelectionModel BeforeSelect
AbstractStoreSelectionModel SelectionChange


Nested Class Summary
static class GridSelectionModel.SelectionModelCallback
          Determines whether a given cell is selectable.
 
Constructor Summary
GridSelectionModel()
           
 
Method Summary
 void bind(Store<M> store)
          Binds the store to the selection model.
 void bindGrid(Grid<M> grid)
          Binds the given grid to this selection model.
 void selectNext(boolean keepexisting)
          Selects the next row.
 void selectPrevious(boolean keepexisting)
          Selects the previous row.
 
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

GridSelectionModel

public GridSelectionModel()
Method Detail

bind

public void bind(Store<M> store)
Description copied from interface: StoreSelectionModel
Binds the store to the selection model.

Specified by:
bind in interface StoreSelectionModel<M>
Overrides:
bind in class AbstractStoreSelectionModel<M>
Parameters:
store - the bound store

bindGrid

public void bindGrid(Grid<M> grid)
Binds the given grid to this selection model.

Parameters:
grid - the grid to bind to this selection model

selectNext

public void selectNext(boolean keepexisting)
Selects the next row.

Parameters:
keepexisting - true to keep existing selections

selectPrevious

public void selectPrevious(boolean keepexisting)
Selects the previous row.

Parameters:
keepexisting - true to keep existing selections


Copyright © 2012. All Rights Reserved.