|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gwtext.client.core.JsObject
com.gwtext.client.widgets.tree.DefaultSelectionModel
public class DefaultSelectionModel
Default Tree selection model. Using this selection model only a single node can be selected.
To enable selection of multiple nodes, use MultiSelectionModel
.
MultiSelectionModel
Field Summary |
---|
Fields inherited from class com.gwtext.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
DefaultSelectionModel()
Construct a DefaultSelectionModel. |
|
DefaultSelectionModel(com.google.gwt.core.client.JavaScriptObject jsObj)
|
Method Summary | |
---|---|
void |
addSelectionModelListener(DefaultSelectionModelListener listener)
|
void |
clearSelections()
Clear all selections. |
TreeNode |
getSelectedNode()
|
boolean |
isSelected(TreeNode treeNode)
Returns true if the node is selected. |
void |
select(TreeNode treeNode)
Select a node. |
void |
selectNext()
Selects the node above the selected node in the tree, intelligently walking the nodes. |
void |
selectPrevious()
Selects the node above the selected node in the tree, intelligently walking the nodes. |
void |
unselect(TreeNode treeNode)
Deselect a node. |
Methods inherited from class com.gwtext.client.core.JsObject |
---|
getJsObj, getProperties, isCreated, setJsObj |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.gwtext.client.widgets.tree.TreeSelectionModel |
---|
getJsObj |
Constructor Detail |
---|
public DefaultSelectionModel()
public DefaultSelectionModel(com.google.gwt.core.client.JavaScriptObject jsObj)
Method Detail |
---|
public void clearSelections()
TreeSelectionModel
clearSelections
in interface TreeSelectionModel
public TreeNode getSelectedNode()
public boolean isSelected(TreeNode treeNode)
TreeSelectionModel
isSelected
in interface TreeSelectionModel
treeNode
- the node to test
public void select(TreeNode treeNode)
TreeSelectionModel
select
in interface TreeSelectionModel
treeNode
- the tree node to selectpublic void selectNext()
TreeSelectionModel
selectNext
in interface TreeSelectionModel
public void selectPrevious()
TreeSelectionModel
selectPrevious
in interface TreeSelectionModel
public void unselect(TreeNode treeNode)
TreeSelectionModel
unselect
in interface TreeSelectionModel
treeNode
- the node to deselectpublic void addSelectionModelListener(DefaultSelectionModelListener listener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |