org.apache.myfaces.custom.tree2
Interface TreeNode

All Superinterfaces:
Serializable
All Known Implementing Classes:
TreeNodeBase, TreeNodeChecked

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: 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.
 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 Detail

isLeaf

boolean isLeaf()

setLeaf

void setLeaf(boolean leaf)

getChildren

List getChildren()

getType

String getType()
Gets the type of TreeNode.

Returns:
The node type

setType

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

Parameters:
type - The node type

getDescription

String getDescription()

setDescription

void setDescription(String description)

setIdentifier

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

Parameters:
identifier - The identifier

getIdentifier

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 © 2012 The Apache Software Foundation. All Rights Reserved.