org.apache.myfaces.custom.tree2
Interface TreeNode
- Serializable
- TreeNodeBase
public interface TreeNode
extends Serializable
Defines the requirements for an object that can be used as a tree node for
use in a
UITreeData
component. (inspired by javax.swing.tree.TreeNode).
$Revision: 201538 $ $Date: 2005-06-24 03:51:06 +0200 (Fri, 24 Jun 2005) $
getChildCount
public int getChildCount()
Gets the number of children this node has.
getChildren
public List getChildren()
getDescription
public String getDescription()
getIdentifier
public String getIdentifier()
Gets the identifier asociated with the
TreeNode
.
getType
public String getType()
isLeaf
public boolean isLeaf()
setDescription
public void setDescription(String description)
setIdentifier
public void setIdentifier(String identifier)
Sets the identifier associated with the
TreeNode
.
identifier
- The identifier
setLeaf
public void setLeaf(boolean leaf)
setType
public void setType(String type)