FileDocCategorySizeDatePackage
TreeNode.javaAPI DocJaudiotagger 2.0.41799Wed Mar 30 16:11:42 BST 2011org.jaudiotagger.utils.tree

TreeNode

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

Implementations of TreeNode that override equals will typically need to override hashCode as well. Refer to {@link javax.swing.tree.TreeModel} for more information. For further information and examples of using tree nodes, see How to Use Tree Nodes in The Java Tutorial.

version
1.26 03/23/10
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 org.jaudiotagger.utils.tree.TreeNodegetChildAt(int childIndex)
Returns the child TreeNode at index childIndex.

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

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

public org.jaudiotagger.utils.tree.TreeNodegetParent()
Returns the parent TreeNode of the receiver.

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