org.oddjob.webapp.jsf
Class TreeNodeBean

java.lang.Object
  extended by org.oddjob.webapp.jsf.TreeNodeBean

public class TreeNodeBean
extends Object

A wrapper for a TreeNode to keep the backing bean as simple as possible.

Author:
rob

Constructor Summary
TreeNodeBean()
           
 
Method Summary
 void collapse()
           
 void expand()
           
 Map<String,TreeNodeBean> getChildMap()
           
 Collection<TreeNodeBean> getChildren()
          return the collection of children
 String getIconId()
           
 Map<String,String> getIconIdRequest()
           
 String getNodeName()
          The node name property.
 String getRefId()
           
 Map<String,String> getRequest()
           
 String getStyleClass()
           
 boolean isHasChildren()
          Getter for the "hasChildren" property.
 boolean isShowChildren()
          Getter method for the "showChildren" property.
 void setChildMap(Map<String,TreeNodeBean> childMap)
           
 void setHasChildren(boolean hasChildren)
          Called by the TreeNodeBuilder
 void setIconId(String iconId)
           
 void setNodeName(String nodeName)
          Set the node name.
 void setRefId(String refId)
           
 void setStyleClass(String styleClass)
           
 void setTreeNodeBeanBuilder(TreeNodeBeanBuilder builder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeNodeBean

public TreeNodeBean()
Method Detail

setTreeNodeBeanBuilder

public void setTreeNodeBeanBuilder(TreeNodeBeanBuilder builder)

getChildren

public Collection<TreeNodeBean> getChildren()
return the collection of children


setChildMap

public void setChildMap(Map<String,TreeNodeBean> childMap)

getChildMap

public Map<String,TreeNodeBean> getChildMap()

getNodeName

public String getNodeName()
The node name property.

Returns:
The node name.

setNodeName

public void setNodeName(String nodeName)
Set the node name.

Parameters:
nodeName - The node name.

isShowChildren

public boolean isShowChildren()
Getter method for the "showChildren" property.

Returns:
true if expanded.

isHasChildren

public boolean isHasChildren()
Getter for the "hasChildren" property.

Returns:
true if this node has child nodes

setHasChildren

public void setHasChildren(boolean hasChildren)
Called by the TreeNodeBuilder

Parameters:
hasChildren -

expand

public void expand()

collapse

public void collapse()

getRefId

public String getRefId()

setRefId

public void setRefId(String refId)

setIconId

public void setIconId(String iconId)

getIconId

public String getIconId()

getRequest

public Map<String,String> getRequest()

getIconIdRequest

public Map<String,String> getIconIdRequest()

getStyleClass

public String getStyleClass()

setStyleClass

public void setStyleClass(String styleClass)