org.apache.myfaces.custom.tree2

Interface TreeNode

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
intgetChildCount()
Gets the number of children this node has.
ListgetChildren()
StringgetDescription()
StringgetIdentifier()
Gets the identifier asociated with the TreeNode.
StringgetType()
Gets the type of TreeNode.
booleanisLeaf()
voidsetDescription(String description)
voidsetIdentifier(String identifier)
Sets the identifier associated with the TreeNode.
voidsetLeaf(boolean leaf)
voidsetType(String type)
Sets the type of TreeNode.

Method Detail

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()
Gets the identifier asociated with the TreeNode.

Returns: the identifier

getType

public String getType()
Gets the type of TreeNode.

Returns: The node type

isLeaf

public boolean isLeaf()

setDescription

public void setDescription(String description)

setIdentifier

public void setIdentifier(String identifier)
Sets the identifier associated with the TreeNode.

Parameters: identifier The identifier

setLeaf

public void setLeaf(boolean leaf)

setType

public void setType(String type)
Sets the type of TreeNode.

Parameters: type The node type