FileDocCategorySizeDatePackage
TreeNode.javaAPI DocJava SE 5 API1562Fri Aug 26 14:58:22 BST 2005javax.swing.tree

TreeNode

public interface TreeNode
Defines the requirements for an object that can be used as a tree node in a JTree.

For further information and examples of using tree nodes, see How to Use Tree Nodes in The Java Tutorial.

version
1.23 07/13/04
author
Rob Davis
author
Scott Violet

Fields Summary
Constructors Summary
Methods Summary
public java.util.Enumerationchildren()
Returns the children of the receiver as an Enumeration.

public booleangetAllowsChildren()
Returns true if the receiver allows children.

public javax.swing.tree.TreeNodegetChildAt(int childIndex)
Returns the child TreeNode at index childIndex.

public intgetChildCount()
Returns the number of children TreeNodes the receiver contains.

public intgetIndex(javax.swing.tree.TreeNode node)
Returns the index of node in the receivers children. If the receiver does not contain node, -1 will be returned.

public javax.swing.tree.TreeNodegetParent()
Returns the parent TreeNode of the receiver.

public booleanisLeaf()
Returns true if the receiver is a leaf.