|
EchoPoint 2.1.0rc5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TreeNode
Defines the requirements for an object that can be used as a
tree node in a TreeModel. Note any hierarchial
data structure can be used inside a TreeModel, however TreeNode
can be used by the DefaultTreeModel as a pre-built TreeModel
implementation.
| Method Summary | |
|---|---|
Enumeration |
children()
Returns the children of the reciever as an Enumeration. |
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 |
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 |
|---|
Enumeration children()
String getActionCommand()
boolean getAllowsChildren()
TreeNode getChildAt(int childIndex)
TreeNode at index
childIndex.
int getChildCount()
TreeNodes the receiver
contains.
int getIndex(TreeNode node)
node in the receivers children.
If the receiver does not contain node, -1 will be
returned.
TreeNode getParent()
TreeNode of the receiver.
boolean isLeaf()
|
EchoPoint 2.1.0rc5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||