|
|||||||||
| 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.treepanel.TreePanelSelectionModel<M>
M - the model typepublic class TreePanelSelectionModel<M extends ModelData>
TreePanel selection model.
| Field Summary | |
|---|---|
protected KeyNav<TreePanelEvent<M>> |
keyNav
|
protected TreePanel |
tree
|
protected TreeStore<M> |
treeStore
|
| Fields inherited from class com.extjs.gxt.ui.client.widget.selection.AbstractStoreSelectionModel |
|---|
lastSelected, locked, selected, selectionMode, store, storeListener |
| Constructor Summary | |
|---|---|
TreePanelSelectionModel()
|
|
| Method Summary | |
|---|---|
void |
bindTree(TreePanel tree)
|
void |
deselect(int index)
Deselects the item at the given index. |
void |
deselect(int start,
int end)
Deselects the range. |
void |
handleEvent(TreePanelEvent tpe)
Sent when an event that the listener has registered for occurs. |
boolean |
isSelected(M item)
Returns true if the item is selected. |
protected M |
next()
|
protected void |
onKeyDown(TreePanelEvent<M> e)
|
protected void |
onKeyLeft(TreePanelEvent<M> ce)
|
protected void |
onKeyRight(TreePanelEvent<M> ce)
|
protected void |
onKeyUp(TreePanelEvent<M> e)
|
protected void |
onMouseClick(TreePanelEvent e)
|
protected void |
onMouseDown(TreePanelEvent be)
|
protected void |
onSelectChange(M model,
boolean select)
|
protected M |
prev()
|
void |
select(int start,
int end,
boolean keepExisting)
Selects the range. |
void |
selectNext()
Selects the item below the selected item in the tree, intelligently walking the nodes. |
void |
selectPrevious()
Selects the item above the selected item in the tree, intelligently walking the nodes. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.selection.AbstractStoreSelectionModel |
|---|
addSelectionChangedListener, bind, deselect, deselect, deselect, deselectAll, doDeselect, doMultiSelect, doSelect, doSingleSelect, fireSelectionChange, getLastFocused, getSelectedItem, getSelectedItems, getSelection, getSelectionMode, isLocked, isModelsEqual, onAdd, onClear, onLastFocusChanged, onRemove, onUpdate, refresh, removeSelectionListener, 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 KeyNav<TreePanelEvent<M extends ModelData>> keyNav
protected TreePanel tree
protected TreeStore<M extends ModelData> treeStore
| Constructor Detail |
|---|
public TreePanelSelectionModel()
| Method Detail |
|---|
public void bindTree(TreePanel tree)
public void deselect(int index)
StoreSelectionModel
deselect in interface StoreSelectionModel<M extends ModelData>deselect in class AbstractStoreSelectionModel<M extends ModelData>index - the index of the item to be deselected
public void deselect(int start,
int end)
StoreSelectionModel
deselect in interface StoreSelectionModel<M extends ModelData>deselect in class AbstractStoreSelectionModel<M extends ModelData>start - the start indexend - the end indexpublic void handleEvent(TreePanelEvent tpe)
Listener
handleEvent in interface Listener<TreePanelEvent>tpe - the event which occurredpublic boolean isSelected(M item)
StoreSelectionModel
isSelected in interface StoreSelectionModel<M extends ModelData>isSelected in class AbstractStoreSelectionModel<M extends ModelData>item - the item
public void select(int start,
int end,
boolean keepExisting)
StoreSelectionModel
select in interface StoreSelectionModel<M extends ModelData>select in class AbstractStoreSelectionModel<M extends ModelData>start - the start indexend - the end indexkeepExisting - true to keep existing selectedpublic void selectNext()
public void selectPrevious()
protected M next()
protected void onKeyDown(TreePanelEvent<M> e)
protected void onKeyLeft(TreePanelEvent<M> ce)
protected void onKeyRight(TreePanelEvent<M> ce)
protected void onKeyUp(TreePanelEvent<M> e)
protected void onMouseClick(TreePanelEvent e)
protected void onMouseDown(TreePanelEvent be)
protected void onSelectChange(M model,
boolean select)
onSelectChange in class AbstractStoreSelectionModel<M extends ModelData>protected M prev()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||