|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.qfs.lib.tree.IndexBasedTreeAdapter
de.qfs.lib.option.OptionGroupTreeAdapter
This is a TreeAdapter for the OptionGroup hierarchy. It assumes that all nodes passed are OptionGroups or OptionEdits.
Nested Class Summary |
Nested classes inherited from class de.qfs.lib.tree.IndexBasedTreeAdapter |
IndexBasedTreeAdapter.ChildEnumeration |
Constructor Summary | |
OptionGroupTreeAdapter()
|
Method Summary | |
int |
getChildCount(java.lang.Object parent)
Get the number of children of a node. |
java.lang.Object |
getChildNode(java.lang.Object parent,
int index)
Get a child of a node. |
int |
getIndexOfChildNode(java.lang.Object parent,
java.lang.Object child)
Get the index of a child in a node's list of children. |
java.lang.Object |
getParentNode(java.lang.Object child)
Get the parent of a node. |
boolean |
isLeaf(java.lang.Object node)
Query whether a node is a leaf. |
Methods inherited from class de.qfs.lib.tree.IndexBasedTreeAdapter |
getChildren, getFirstChildNode, getLastChildNode, getNextSibling, getPreviousSibling, isEnumerationBased, isIndexBased, isLinkBased |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OptionGroupTreeAdapter()
Method Detail |
public java.lang.Object getParentNode(java.lang.Object child)
child
- The node to query for the parent.
public boolean isLeaf(java.lang.Object node)
node
- The node to query.
public int getChildCount(java.lang.Object parent)
parent
- The node to query.
public java.lang.Object getChildNode(java.lang.Object parent, int index) throws java.lang.IndexOutOfBoundsException
parent
- The node to query.index
- The index of the child.
java.lang.IndexOutOfBoundsException
- If the index is invalid.public int getIndexOfChildNode(java.lang.Object parent, java.lang.Object child)
parent
- The node to query.child
- The child to look for.
|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |