|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.widget.selection.AbstractStoreSelectionModel<M>
com.extjs.gxt.ui.client.widget.grid.GridSelectionModel<M>
public class GridSelectionModel<M extends ModelData>
Grid selection model.
| Nested Class Summary | |
|---|---|
static class |
GridSelectionModel.Callback
|
static class |
GridSelectionModel.Cell
|
| Field Summary | |
|---|---|
protected boolean |
enableNavKeys
|
protected Grid<M> |
grid
|
protected boolean |
grouped
|
protected GroupingView |
groupingView
|
protected KeyNav<GridEvent<M>> |
keyNav
|
protected ListStore<M> |
listStore
|
protected com.google.gwt.user.client.Element |
selectedGroup
|
protected ColumnHeader.Head |
selectedHeader
|
| Fields inherited from class com.extjs.gxt.ui.client.widget.selection.AbstractStoreSelectionModel |
|---|
lastSelected, locked, selected, selectionMode, store, storeListener |
| Constructor Summary | |
|---|---|
GridSelectionModel()
|
|
| Method Summary | |
|---|---|
void |
bind(Store store)
Binds the store to the selection model. |
void |
bindGrid(Grid grid)
|
protected void |
handleColumnHidden(ColumnModelEvent e)
|
void |
handleEvent(BaseEvent e)
Sent when an event that the listener has registered for occurs. |
protected void |
handleMouseClick(GridEvent<M> e)
|
protected void |
handleMouseDown(GridEvent<M> e)
|
protected boolean |
hasNext()
|
protected boolean |
hasPrevious()
|
protected boolean |
isInput(com.google.gwt.user.client.Element target)
|
boolean |
isMoveEditorOnEnter()
Returns true of the editor moves on enter. |
protected boolean |
isSelectable(int row,
int cell,
boolean acceptsNav)
|
void |
onEditorKey(DomEvent e)
|
protected void |
onKeyDown(GridEvent<M> e)
|
protected void |
onKeyLeft(GridEvent<M> ce)
|
protected void |
onKeyPress(GridEvent<M> e)
|
protected void |
onKeyRight(GridEvent<M> ce)
|
protected void |
onKeyUp(GridEvent<M> e)
|
protected void |
onLastFocusChanged(M oldFocused,
M newFocused)
|
protected void |
onRowUpdated(GridEvent<M> ge)
|
protected void |
onSelectChange(M model,
boolean select)
|
void |
selectNext(boolean keepexisting)
Selects the next row. |
void |
selectPrevious(boolean keepexisting)
Selects the previous row. |
void |
setMoveEditorOnEnter(boolean moveEditorOnEnter)
Set this to true to move the editor to the next editable cell on pressing enter. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.selection.AbstractStoreSelectionModel |
|---|
addSelectionChangedListener, deselect, deselect, deselect, deselect, deselect, deselectAll, doDeselect, doMultiSelect, doSelect, doSingleSelect, fireSelectionChange, getLastFocused, getSelectedItem, getSelectedItems, getSelection, getSelectionMode, isLocked, isModelsEqual, isSelected, onAdd, onClear, onRemove, onUpdate, refresh, removeSelectionListener, select, select, select, select, select, selectAll, setLastFocused, setLocked, setSelection, setSelectionMode |
| Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
|---|
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean enableNavKeys
protected Grid<M extends ModelData> grid
protected boolean grouped
protected GroupingView groupingView
protected KeyNav<GridEvent<M extends ModelData>> keyNav
protected ListStore<M extends ModelData> listStore
protected com.google.gwt.user.client.Element selectedGroup
protected ColumnHeader.Head selectedHeader
| Constructor Detail |
|---|
public GridSelectionModel()
| Method Detail |
|---|
public void bind(Store store)
StoreSelectionModel
bind in interface StoreSelectionModel<M extends ModelData>bind in class AbstractStoreSelectionModel<M extends ModelData>store - the bound storepublic void bindGrid(Grid grid)
public void handleEvent(BaseEvent e)
Listener
handleEvent in interface Listener<BaseEvent>e - the event which occurredpublic boolean isMoveEditorOnEnter()
public void onEditorKey(DomEvent e)
public void selectNext(boolean keepexisting)
keepexisting - true to keep existing selectionspublic void selectPrevious(boolean keepexisting)
keepexisting - true to keep existing selectionspublic void setMoveEditorOnEnter(boolean moveEditorOnEnter)
moveEditorOnEnter - true to move the editor on pressing enter.protected void handleColumnHidden(ColumnModelEvent e)
protected void handleMouseClick(GridEvent<M> e)
protected void handleMouseDown(GridEvent<M> e)
protected boolean hasNext()
protected boolean hasPrevious()
protected boolean isInput(com.google.gwt.user.client.Element target)
protected boolean isSelectable(int row,
int cell,
boolean acceptsNav)
protected void onKeyDown(GridEvent<M> e)
protected void onKeyLeft(GridEvent<M> ce)
protected void onKeyPress(GridEvent<M> e)
protected void onKeyRight(GridEvent<M> ce)
protected void onKeyUp(GridEvent<M> e)
protected void onLastFocusChanged(M oldFocused,
M newFocused)
onLastFocusChanged in class AbstractStoreSelectionModel<M extends ModelData>protected void onRowUpdated(GridEvent<M> ge)
protected void onSelectChange(M model,
boolean select)
onSelectChange in class AbstractStoreSelectionModel<M extends ModelData>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||