|
EchoPoint 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Defines the requirements for an object that can be used as a tree node in a Tree.
| Method Summary | |
java.util.Enumeration |
children()
Returns the children of the reciever as an Enumeration. |
java.lang.String |
getActionCommand()
Returns the Action command string associated with this node |
boolean |
getAllowsChildren()
Returns true if the receiver allows children. |
TreeNode |
getChildAt(int childIndex)
Returns the child TreeNode at index
childIndex. |
int |
getChildCount()
Returns the number of children TreeNodes the receiver
contains. |
int |
getId()
Returns the unique Id of the TreeNode
Using System.identityHashCode(node) might be a good way to implement this; |
int |
getIndex(TreeNode node)
Returns the index of node in the receivers children.
|
TreeNode |
getParent()
Returns the parent TreeNode of the receiver. |
boolean |
isLeaf()
Returns true if the receiver is a leaf. |
| Method Detail |
public java.util.Enumeration children()
public java.lang.String getActionCommand()
public boolean getAllowsChildren()
public TreeNode getChildAt(int childIndex)
TreeNode at index
childIndex.
public int getChildCount()
TreeNodes the receiver
contains.
public int getId()
TreeNode
Using System.identityHashCode(node) might be a good way to implement this;
public int getIndex(TreeNode node)
node in the receivers children.
If the receiver does not contain node, -1 will be
returned.
public TreeNode getParent()
TreeNode of the receiver.
public boolean isLeaf()
|
EchoPoint 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||