|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.widget.core.client.selection.AbstractStoreSelectionModel<M>
com.sencha.gxt.widget.core.client.grid.GridSelectionModel<M>
com.sencha.gxt.widget.core.client.grid.CellSelectionModel<M>
M - the model typepublic class CellSelectionModel<M>
Cell based selection model. User selectCell(int, int) to select a
cell and deselectAll() to deselect.
#addCellSelectionChangedHandler(CellSelectionChangedHandler) to be
notified of selection changes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sencha.gxt.widget.core.client.grid.GridSelectionModel |
|---|
GridSelectionModel.SelectionModelCallback |
| Constructor Summary | |
|---|---|
CellSelectionModel()
|
|
| Method Summary | |
|---|---|
HandlerRegistration |
addCellSelectionChangedHandler(CellSelectionChangedEvent.CellSelectionChangedHandler<M> handler)
Adds a CellSelectionChangedEvent.CellSelectionChangedHandler handler for
CellSelectionChangedEvent events. |
HandlerRegistration |
addSelectionChangedHandler(SelectionChangedEvent.SelectionChangedHandler<M> handler)
Adds a SelectionChangedEvent.SelectionChangedHandler handler for
SelectionChangedEvent events. |
HandlerRegistration |
addSelectionHandler(SelectionHandler<M> handler)
|
void |
bindGrid(Grid<M> grid)
Binds the given grid to this selection model. |
void |
deselect(int index)
Deselects the item at the given index. |
void |
deselect(int start,
int end)
Deselects the range. |
void |
deselect(java.util.List<M> items)
Deselects the items. |
void |
deselect(M... items)
Deselects the items. |
void |
deselect(M item)
Deselects the item. |
void |
deselectAll()
Deselects all selections. |
CellSelection<M> |
getSelectCell()
Returns the selected cell or null. |
M |
getSelectedItem()
Returns the selected item. |
java.util.List<M> |
getSelectedItems()
Returns the selected items. |
void |
select(boolean keepExisting,
M... items)
Selects the items. |
void |
select(int index,
boolean keepExisting)
Selects the item at the given index. |
void |
select(int start,
int end,
boolean keepExisting)
Selects the range. |
void |
select(java.util.List<M> items,
boolean keepExisting)
Selects the items. |
void |
select(M item,
boolean keepExisting)
Selects the item. |
void |
selectAll()
Selects all items. |
void |
selectCell(int row,
int cell)
Selects the cell. |
| 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, fireEvent, getSelection, getSelectionMode, isLocked, isSelected, refresh, setLocked, setSelection, setSelectionMode |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CellSelectionModel()
| Method Detail |
|---|
public HandlerRegistration addCellSelectionChangedHandler(CellSelectionChangedEvent.CellSelectionChangedHandler<M> handler)
CellSelectionChangedEvent.HasCellSelectionChangedHandlersCellSelectionChangedEvent.CellSelectionChangedHandler handler for
CellSelectionChangedEvent events.
addCellSelectionChangedHandler in interface CellSelectionChangedEvent.HasCellSelectionChangedHandlers<M>handler - the handler
public HandlerRegistration addSelectionChangedHandler(SelectionChangedEvent.SelectionChangedHandler<M> handler)
SelectionChangedEvent.HasSelectionChangedHandlersSelectionChangedEvent.SelectionChangedHandler handler for
SelectionChangedEvent events.
addSelectionChangedHandler in interface SelectionChangedEvent.HasSelectionChangedHandlers<M>addSelectionChangedHandler in class AbstractStoreSelectionModel<M>handler - the handler
public HandlerRegistration addSelectionHandler(SelectionHandler<M> handler)
addSelectionHandler in interface HasSelectionHandlers<M>addSelectionHandler in class AbstractStoreSelectionModel<M>public void bindGrid(Grid<M> grid)
GridSelectionModel
bindGrid in class GridSelectionModel<M>grid - the grid to bind to this selection modelpublic void deselect(int index)
StoreSelectionModel
deselect in interface StoreSelectionModel<M>deselect in class AbstractStoreSelectionModel<M>index - the index of the item to be deselected
public void deselect(int start,
int end)
StoreSelectionModel
deselect in interface StoreSelectionModel<M>deselect in class AbstractStoreSelectionModel<M>start - the start indexend - the end indexpublic void deselect(java.util.List<M> items)
StoreSelectionModel
deselect in interface StoreSelectionModel<M>deselect in class AbstractStoreSelectionModel<M>items - the itempublic void deselect(M item)
StoreSelectionModel
deselect in interface StoreSelectionModel<M>deselect in class AbstractStoreSelectionModel<M>item - the item to be deselectedpublic void deselect(M... items)
StoreSelectionModel
deselect in interface StoreSelectionModel<M>deselect in class AbstractStoreSelectionModel<M>items - the items to deselectpublic void deselectAll()
StoreSelectionModel
deselectAll in interface StoreSelectionModel<M>deselectAll in class AbstractStoreSelectionModel<M>public CellSelection<M> getSelectCell()
public M getSelectedItem()
StoreSelectionModel
getSelectedItem in interface StoreSelectionModel<M>getSelectedItem in class AbstractStoreSelectionModel<M>public java.util.List<M> getSelectedItems()
StoreSelectionModel
getSelectedItems in interface StoreSelectionModel<M>getSelectedItems in class AbstractStoreSelectionModel<M>
public void select(boolean keepExisting,
M... items)
StoreSelectionModel
select in interface StoreSelectionModel<M>select in class AbstractStoreSelectionModel<M>keepExisting - true to keep existing selecteditems - the items
public void select(int index,
boolean keepExisting)
StoreSelectionModel
select in interface StoreSelectionModel<M>select in class AbstractStoreSelectionModel<M>index - the index of the item to be selectedkeepExisting - true to keep existing selected
public void select(int start,
int end,
boolean keepExisting)
StoreSelectionModel
select in interface StoreSelectionModel<M>select in class AbstractStoreSelectionModel<M>start - the start indexend - the end indexkeepExisting - true to keep existing selected
public void select(java.util.List<M> items,
boolean keepExisting)
StoreSelectionModel
select in interface StoreSelectionModel<M>select in class AbstractStoreSelectionModel<M>items - the items to selectkeepExisting - true to keep existing selected
public void select(M item,
boolean keepExisting)
StoreSelectionModel
select in interface StoreSelectionModel<M>select in class AbstractStoreSelectionModel<M>item - the itemkeepExisting - true to keep existing selectedpublic void selectAll()
StoreSelectionModel
selectAll in interface StoreSelectionModel<M>selectAll in class AbstractStoreSelectionModel<M>
public void selectCell(int row,
int cell)
row - the row indexcell - the cell index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||