org.oddjob.webapp.jsf
Class TreeBean

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

@SessionScoped
@ManagedBean(name="tree")
public class TreeBean
extends Object

Backing bean for the tree. This provides the root TreeNodeBean from which the tree is built.

The bean is a session scoped bean so the tree expansion state and select node are preserved between requests.

Author:
Rob Gordon.

Constructor Summary
TreeBean()
           
 
Method Summary
 TreeNodeBean getRoot()
          Getter for the root.
 String getSelectedRefId()
          Getter for the selected node reference id.
 void refresh(javax.faces.event.ComponentSystemEvent event)
          Capture the preRenderView event to refresh tree.
 void setSelectedRefId(String selectedRefId)
          Setter for the selected node reference id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeBean

public TreeBean()
Method Detail

refresh

public void refresh(javax.faces.event.ComponentSystemEvent event)
Capture the preRenderView event to refresh tree.


getRoot

public TreeNodeBean getRoot()
Getter for the root.

Returns:

getSelectedRefId

public String getSelectedRefId()
Getter for the selected node reference id.

Returns:

setSelectedRefId

public void setSelectedRefId(String selectedRefId)
Setter for the selected node reference id.

Parameters:
selectedRefId -