|
|||||||||
| 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 TreeSelectionModelpublic TreeNode getSelectedNode()
public boolean isSelected(TreeNode treeNode)
TreeSelectionModel
isSelected in interface TreeSelectionModeltreeNode - the node to test
public void select(TreeNode treeNode)
TreeSelectionModel
select in interface TreeSelectionModeltreeNode - the tree node to selectpublic void selectNext()
TreeSelectionModel
selectNext in interface TreeSelectionModelpublic void selectPrevious()
TreeSelectionModel
selectPrevious in interface TreeSelectionModelpublic void unselect(TreeNode treeNode)
TreeSelectionModel
unselect in interface TreeSelectionModeltreeNode - the node to deselectpublic void addSelectionModelListener(DefaultSelectionModelListener listener)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||