|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Manages a hierarchy of IDs.
See com.sdm.quasar.client.comp.dlgdef.ctrl.DialogController
for a description concerning the way the hierarchy manager is used to
organize dialogs of the session.
Note: Implementations of this interface must be threadsafe.
| Method Summary | |
void |
addChild(ID parentId,
ID childId)
Adds a child to the node with the given parent id. |
void |
addRoot(ID rootId)
Adds a new root node with the given id. |
void |
removeChild(ID parentId,
ID childId)
Removes the given child id from the node with the given parent id. |
void |
removeRoot(ID rootId)
Removes an existing root node. |
| Methods inherited from interface com.sdm.quasar.client.core.common.hierarchy.HierarchyProvider |
addHierarchyProviderListener, getChildCount, getChildren, getParentForChild, getRoots, hasID, isChild, removeHierarchyProviderListener |
| Method Detail |
public void addRoot(ID rootId)
rootId - the id of the new root node
java.lang.IllegalArgumentException - if the node id is knownpublic void removeRoot(ID rootId)
rootId - the id of the root node
java.lang.IllegalArgumentException - if the node id is unknown, the node is
not a root node, or the node does have children assigned.
public void addChild(ID parentId,
ID childId)
parentId - the id of the parent nodechildId - the id of the new child
java.lang.IllegalArgumentException - if the parent id is unknown or the child id is known
public void removeChild(ID parentId,
ID childId)
parentId - the id of the parent nodechildId - the id of the child node to be removed
java.lang.IllegalArgumentException - if the parent id is unknown or the child id is unknown
or if the child id is not a child of the parent id or the child has children of its own.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||