| java.lang.Object net.mygwt.ui.client.util.Observable net.mygwt.ui.client.widget.tree.TreeSelectionModel
All known Subclasses: net.mygwt.ui.client.widget.tree.MultiSelectionModel,
TreeSelectionModel | public class TreeSelectionModel extends Observable (Code) | | A single-select tree selection model.
- Events:
- SelectionChange : (source, widget, item, items)
Fires after the selection has changed.
- source : this
- widget : the table
- item : single selection or null
- items : multi selection or null
See Also: MultiSelectionModel |
TreeSelectionModel | public TreeSelectionModel()(Code) | | |
deselect | public void deselect(TreeItem item)(Code) | | Deselect a item.
Parameters: item - the item to be deselected |
deselectAll | public void deselectAll()(Code) | | Deselects all selections.
|
getSelected | public TreeItem getSelected()(Code) | | Returns the selected item.
the selected item or null if no selection |
getSelection | public TreeItem[] getSelection()(Code) | | Returns a array of selected items.
the selected items |
getTree | public Tree getTree()(Code) | | Returns the model's tree.
the tree |
init | public void init(Tree tree)(Code) | | Binds the model to the specified tree.
Parameters: tree - the tree |
isSelected | public boolean isSelected(TreeItem item)(Code) | | Returns true if the item is selected.
Parameters: item - the item the selected state |
select | public void select(TreeItem item)(Code) | | Selects a item.
Parameters: item - the item to be selected |
selectNext | public void selectNext()(Code) | | Selects the item below the selected item in the tree, intelligently walking
the nodes.
|
selectPrevious | public void selectPrevious()(Code) | | Selects the item above the selected item in the tree, intelligently walking
the nodes.
|
|
|