M - the model typepublic class TreeSelectionModel<M> extends AbstractStoreSelectionModel<M>
Tree selection model.| Constructor and Description |
|---|
TreeSelectionModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindTree(Tree 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.
|
addBeforeSelectionHandler, addSelectionChangedHandler, addSelectionHandler, bind, deselect, deselect, deselect, deselectAll, fireEvent, getSelectedItem, getSelectedItems, getSelection, getSelectionMode, isLocked, refresh, select, select, select, select, selectAll, setLocked, setSelection, setSelectionModepublic void bindTree(Tree tree)
public void deselect(int index)
StoreSelectionModeldeselect in interface StoreSelectionModel<M>deselect in class AbstractStoreSelectionModel<M>index - the index of the item to be deselectedpublic void deselect(int start,
int end)
StoreSelectionModeldeselect in interface StoreSelectionModel<M>deselect in class AbstractStoreSelectionModel<M>start - the start indexend - the end indexpublic boolean isSelected(M item)
StoreSelectionModelisSelected in interface StoreSelectionModel<M>isSelected in class AbstractStoreSelectionModel<M>item - the itempublic void select(int start,
int end,
boolean keepExisting)
StoreSelectionModelselect 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()
Copyright © 2012. All Rights Reserved.