org.apache.tapestry.contrib.tree.model
Interface ITreeNode

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
IMutableTreeNode
All Known Implementing Classes:
TreeNode

public interface ITreeNode
extends java.io.Serializable

Author:
ceco

Method Summary
 boolean containsChild(ITreeNode node)
          Returns the true if current node contains received children, otherwise return false;
 boolean getAllowsChildren()
          Returns true if the receiver allows children.
 int getChildCount()
          Returns the number of children ITreeNodes the receiver contains.
 java.util.Collection getChildren()
          Returns the Collection of children.
 ITreeNode getParent()
          Returns the parent ITreeNode of the receiver.
 boolean isLeaf()
          Returns true if the receiver is a leaf.
 

Method Detail

getChildren

public java.util.Collection getChildren()
Returns the Collection of children.


getChildCount

public int getChildCount()
Returns the number of children ITreeNodes the receiver contains.


getParent

public ITreeNode getParent()
Returns the parent ITreeNode of the receiver.


containsChild

public boolean containsChild(ITreeNode node)
Returns the true if current node contains received children, otherwise return false;


getAllowsChildren

public boolean getAllowsChildren()
Returns true if the receiver allows children.


isLeaf

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