component
Class TOCTreePanel.TOCTree
java.lang.Object
component.TOCTreePanel.TOCTree
- Enclosing class:
- TOCTreePanel
- public static class TOCTreePanel.TOCTree
- extends java.lang.Object
|
Method Summary |
void |
addNode(java.lang.String[] path,
java.lang.String name,
java.lang.String status,
java.lang.String icon)
Adds the given node to the tree. |
void |
setSelectedNode(java.lang.String[] path)
Indicates which node should be logically selected. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TOCTreePanel.TOCTree
public TOCTreePanel.TOCTree(java.lang.String rootName,
java.lang.String status,
java.lang.String icon)
TOCTreePanel.TOCTree
public TOCTreePanel.TOCTree(java.lang.String s)
addNode
public void addNode(java.lang.String[] path,
java.lang.String name,
java.lang.String status,
java.lang.String icon)
- Adds the given node to the tree.
This method adds each node in the path, if not already present.
Any nodes that are not present are added with the given status and
icon. Existing nodes do not have their name, status or icon changed.
If the terminal node exists, the status is set to status,
and the name is set to name, but the icon is unchanged.
- Parameters:
path - a list of node names beginning at a child of the root
and terminating at the desired node.status - a valid status token (from SkillLatticeConstants).icon - a valid icon token (ie a *_ICON_TOKEN constant).
setSelectedNode
public void setSelectedNode(java.lang.String[] path)
- Indicates which node should be logically selected.
- Parameters:
path - a list of node names beginning at a child of the root
and terminating at the desired node.
toString
public java.lang.String toString()
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.