org.primefaces.model
Class DefaultTreeNode

java.lang.Object
  extended by org.primefaces.model.DefaultTreeNode
All Implemented Interfaces:
java.io.Serializable, TreeNode

public class DefaultTreeNode
extends java.lang.Object
implements TreeNode, java.io.Serializable

See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_TYPE
           
 
Constructor Summary
DefaultTreeNode()
           
DefaultTreeNode(java.lang.Object data, TreeNode parent)
           
DefaultTreeNode(java.lang.String type, java.lang.Object data, TreeNode parent)
           
 
Method Summary
 void addChild(TreeNode treeNode)
           
 boolean equals(java.lang.Object obj)
           
 int getChildCount()
           
 java.util.List<TreeNode> getChildren()
           
 java.lang.Object getData()
           
 TreeNode getParent()
           
 java.lang.String getType()
           
 int hashCode()
           
 boolean isExpanded()
           
 boolean isLeaf()
           
 boolean isSelected()
           
 void setChildren(java.util.List<TreeNode> children)
           
 void setData(java.lang.Object data)
           
 void setExpanded(boolean expanded)
           
 void setParent(TreeNode parent)
           
 void setSelected(boolean value)
           
 void setType(java.lang.String type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_TYPE

public static final java.lang.String DEFAULT_TYPE
See Also:
Constant Field Values
Constructor Detail

DefaultTreeNode

public DefaultTreeNode()

DefaultTreeNode

public DefaultTreeNode(java.lang.Object data,
                       TreeNode parent)

DefaultTreeNode

public DefaultTreeNode(java.lang.String type,
                       java.lang.Object data,
                       TreeNode parent)
Method Detail

getType

public java.lang.String getType()
Specified by:
getType in interface TreeNode

setType

public void setType(java.lang.String type)

getData

public java.lang.Object getData()
Specified by:
getData in interface TreeNode

setData

public void setData(java.lang.Object data)

getChildren

public java.util.List<TreeNode> getChildren()
Specified by:
getChildren in interface TreeNode

setChildren

public void setChildren(java.util.List<TreeNode> children)

getParent

public TreeNode getParent()
Specified by:
getParent in interface TreeNode

setParent

public void setParent(TreeNode parent)
Specified by:
setParent in interface TreeNode

isExpanded

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

setExpanded

public void setExpanded(boolean expanded)
Specified by:
setExpanded in interface TreeNode

isSelected

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

setSelected

public void setSelected(boolean value)
Specified by:
setSelected in interface TreeNode

addChild

public void addChild(TreeNode treeNode)
Specified by:
addChild in interface TreeNode

getChildCount

public int getChildCount()
Specified by:
getChildCount in interface TreeNode

isLeaf

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.