|
||||||||||
| 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.tree.TreeSelectionModel<M>
M - the model typepublic class TreeSelectionModel<M>
Tree selection model.
| Constructor Summary | |
|---|---|
TreeSelectionModel()
|
|
| Method Summary | |
|---|---|
void |
bindTree(Tree<M,?> tree)
|
void |
deselect(int index)
Deselects the item at the given index. |
void |
deselect(int start,
int end)
Deselects the range. |
boolean |
isSelected(M item)
Returns true if the item is selected. |
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.sencha.gxt.widget.core.client.selection.AbstractStoreSelectionModel |
|---|
addBeforeSelectionHandler, addSelectionChangedHandler, addSelectionHandler, bind, deselect, deselect, deselect, deselectAll, fireEvent, getSelectedItem, getSelectedItems, getSelection, getSelectionMode, isLocked, refresh, 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 |
|---|
public TreeSelectionModel()
| Method Detail |
|---|
public void bindTree(Tree<M,?> tree)
public 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 boolean isSelected(M item)
StoreSelectionModel
isSelected in interface StoreSelectionModel<M>isSelected in class AbstractStoreSelectionModel<M>item - the item
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 selectedpublic void selectNext()
public void selectPrevious()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||