org.apache.myfaces.custom.tree2
Interface TreeNode

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
TreeNodeBase, TreeNodeChecked

public interface TreeNode
extends java.io.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: 472638 $ $Date: 2006-11-08 15:54:13 -0500 (Wed, 08 Nov 2006) $
Author:
Sean Schofield

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

Method Detail

isLeaf

boolean isLeaf()

setLeaf

void setLeaf(boolean leaf)

getChildren

java.util.List getChildren()

getType

java.lang.String getType()
Gets the type of TreeNode.

Returns:
The node type

setType

void setType(java.lang.String type)
Sets the type of TreeNode.

Parameters:
type - The node type

getDescription

java.lang.String getDescription()

setDescription

void setDescription(java.lang.String description)

setIdentifier

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

Parameters:
identifier - The identifier

getIdentifier

java.lang.String getIdentifier()
Gets the identifier asociated with the TreeNode.

Returns:
the identifier

getChildCount

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

Returns:
the number of children


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.