org.apache.myfaces.custom.tree2

Interface TreeNode

All Superinterfaces:
Serializable
Known Implementing Classes:
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).
Version:
$Revision: 201538 $ $Date: 2005-06-24 03:51:06 +0200 (Fri, 24 Jun 2005) $
Author:
Sean Schofield

Method Summary

int
getChildCount()
Gets the number of children this node has.
List
getChildren()
String
getDescription()
String
getIdentifier()
Gets the identifier asociated with the TreeNode.
String
getType()
Gets the type of TreeNode.
boolean
isLeaf()
void
setDescription(String description)
void
setIdentifier(String identifier)
Sets the identifier associated with the TreeNode.
void
setLeaf(boolean leaf)
void
setType(String type)
Sets the type of TreeNode.

Method Details

getChildCount

public int getChildCount()
Gets the number of children this node has.
Returns:
the number of children

getChildren

public List getChildren()

getDescription

public String getDescription()

getIdentifier

public String getIdentifier()
Returns:
the identifier

getType

public String getType()
Returns:
The node type

isLeaf

public boolean isLeaf()

setDescription

public void setDescription(String description)

setIdentifier

public void setIdentifier(String identifier)
Parameters:
identifier - The identifier

setLeaf

public void setLeaf(boolean leaf)

setType

public void setType(String type)
Parameters:
type - The node type