|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The API for a widget model that holds a tree and its selection status.
| Field Summary | |
static int |
S_LAST
The numeric highest style constant used in this class |
static int |
S_MULTI_SELECT
Specify this style constant in the constructor if you want the tree to allow multi selection. |
| Method Summary | |
void |
clear()
Removes all nodes from the tree and resets the selection information. |
boolean |
containsKey(java.lang.String key)
Returns true if this tree contains a node whose key equals the one provided as parameter. |
TreeNode |
getNode(java.lang.String key)
Returns the tree node for a particular key or null if there is no such node. |
int |
getRootCount()
Returns the number of root nodes in this tree |
TreeNode[] |
getRoots()
Returns the root nodes of this tree. |
TreeNode |
getSelectedNode()
Returns the selected tree node or null if there is no such node. |
java.lang.String[] |
getSelectionOrdered()
Returns a newly created array containing the ids of the selected entries in ordered by the rows on the screen. |
void |
selectAll()
Selects all nodes in the tree. |
int |
size()
Returns the number of nodes in this tree. |
| Methods inherited from interface at.spardat.xma.mdl.ISelectable |
deselect, deselectAll, getSelected, getSelection, getSelectionCount, isMultiSelect, isSelected, isStrict, select |
| Field Detail |
public static final int S_MULTI_SELECT
public static final int S_LAST
| Method Detail |
public void clear()
public int size()
public boolean containsKey(java.lang.String key)
public int getRootCount()
public TreeNode[] getRoots()
public TreeNode getNode(java.lang.String key)
public TreeNode getSelectedNode()
public void selectAll()
public java.lang.String[] getSelectionOrdered()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||