org.apache.myfaces.custom.tree2
Class TreeNodeBase

java.lang.Object
  extended by org.apache.myfaces.custom.tree2.TreeNodeBase
All Implemented Interfaces:
Serializable, Comparable, TreeNode
Direct Known Subclasses:
TreeNodeChecked

public class TreeNodeBase
extends Object
implements TreeNode, Comparable

See Also:
Serialized Form

Constructor Summary
TreeNodeBase()
           
TreeNodeBase(String type, String description, boolean leaf)
           
TreeNodeBase(String type, String description, String identifier, boolean leaf)
           
 
Method Summary
 int compareTo(Object obj)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeNodeBase

public TreeNodeBase()

TreeNodeBase

public TreeNodeBase(String type,
                    String description,
                    boolean leaf)

TreeNodeBase

public TreeNodeBase(String type,
                    String description,
                    String identifier,
                    boolean leaf)
Method Detail

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface TreeNode

setLeaf

public void setLeaf(boolean leaf)
Specified by:
setLeaf in interface TreeNode

getChildren

public List getChildren()
Specified by:
getChildren in interface TreeNode

getType

public String getType()
Description copied from interface: TreeNode
Gets the type of TreeNode.

Specified by:
getType in interface TreeNode
Returns:
The node type

setType

public void setType(String type)
Description copied from interface: TreeNode
Sets the type of TreeNode.

Specified by:
setType in interface TreeNode
Parameters:
type - The node type

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface TreeNode

getDescription

public String getDescription()
Specified by:
getDescription in interface TreeNode

setIdentifier

public void setIdentifier(String identifier)
Description copied from interface: TreeNode
Sets the identifier associated with the TreeNode.

Specified by:
setIdentifier in interface TreeNode
Parameters:
identifier - The identifier

getIdentifier

public String getIdentifier()
Description copied from interface: TreeNode
Gets the identifier asociated with the TreeNode.

Specified by:
getIdentifier in interface TreeNode
Returns:
the identifier

getChildCount

public int getChildCount()
Description copied from interface: TreeNode
Gets the number of children this node has.

Specified by:
getChildCount in interface TreeNode
Returns:
the number of children

compareTo

public int compareTo(Object obj)
Specified by:
compareTo in interface Comparable


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