org.oddjob.webapp.jsf
Class DetailBean

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

@ManagedBean(name="detail")
@SessionScoped
public class DetailBean
extends Object

The backing bean for the detail panel. This bean keeps track of the tab selected.

The bean is session scoped so that the tab can be remembered between requests.

Author:
rob

Nested Class Summary
 class DetailBean.Tab
          Bean for Tab definitions.
 
Constructor Summary
DetailBean()
          Constructor.
 
Method Summary
 String getRefId()
          Getter for refId.
 String getTab()
          Get currently selected tab.
 List<DetailBean.Tab> getTabs()
          Getter for tab defintions.
 TreeBean getTree()
          Getter for tree.
 void setTab(String selectedTab)
          Set currently selected tab.
 void setTree(TreeBean tree)
          Setter for tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DetailBean

public DetailBean()
Constructor.

Method Detail

setTree

public void setTree(TreeBean tree)
Setter for tree. This is automatically injected.

Parameters:
tree -

getTree

public TreeBean getTree()
Getter for tree. Not sure this is currently used anywhere.

Returns:

getRefId

public String getRefId()
Getter for refId.

Returns:
The refId.

getTab

public String getTab()
Get currently selected tab.

Returns:

setTab

public void setTab(String selectedTab)
Set currently selected tab. Set via the f:param tag in tabs.xhtml.

Parameters:
selectedTab -

getTabs

public List<DetailBean.Tab> getTabs()
Getter for tab defintions. Used by tabs.xhtml.

Returns: