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

All Superinterfaces:
Serializable
All Known Subinterfaces:
IMutableTreeNode
All Known Implementing Classes:
TreeNode

public interface ITreeNode
extends Serializable

Version:
$Id: ITreeNode.java 243791 2004-02-19 17:38:13Z hlship $
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.
 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

Collection getChildren()
Returns the Collection of children.


getChildCount

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


getParent

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


containsChild

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


getAllowsChildren

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


isLeaf

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