|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A PolyTreeNode that has multiple parents and children.
The TreeNode interface is rewritten here because of following reasons:
isLeaf(), getIndex(TreeNode), getParent()
.Nevertheless most method names of PolyTreeNode match those of TreeNode and implement the same semantics.
Method Summary | |
java.util.Enumeration |
children()
Returns the children of the reciever as an Enumeration. |
boolean |
getAllowsChildren()
Returns true if the receiver allows children. |
boolean |
getAllowsParents()
Returns true if the receiver allows parents. |
PolyTreeNode |
getChildAt(int childIndex)
Returns the parent PolyTreeNode at index childIndex. |
int |
getChildCount()
Returns the number of children PolyTreeNodes the receiver contains. |
int |
getChildIndex(PolyTreeNode node)
Returns the index of node in the receivers parents. |
PolyTreeNode |
getParentAt(int parentIndex)
Returns the parent PolyTreeNode at index parentIndex. |
int |
getParentCount()
Returns the number of parents PolyTreeNodes the receiver contains. |
int |
getParentIndex(PolyTreeNode node)
Returns the index of node in the receivers parents. |
java.lang.Object |
getUserObject()
Returns the userObject, a File or Document or whatever. |
boolean |
isChildLeaf()
Returns true if this node has no children. |
boolean |
isParentLeaf()
Returns true if this node has no parents. |
java.util.Enumeration |
parents()
Returns the parents of the reciever as an Enumeration. |
Method Detail |
public java.lang.Object getUserObject()
public java.util.Enumeration parents()
public boolean getAllowsParents()
public PolyTreeNode getParentAt(int parentIndex)
public int getParentCount()
public int getParentIndex(PolyTreeNode node)
public boolean isParentLeaf()
public boolean isChildLeaf()
public int getChildIndex(PolyTreeNode node)
public int getChildCount()
public PolyTreeNode getChildAt(int childIndex)
public boolean getAllowsChildren()
public java.util.Enumeration children()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |