org.alfresco.web.bean
Class SidebarBean

java.lang.Object
  extended by org.alfresco.web.bean.SidebarBean
All Implemented Interfaces:
java.io.Serializable

public class SidebarBean
extends java.lang.Object
implements java.io.Serializable

Managed bean used by the sidebar component to manage it's state.

See Also:
Serialized Form

Field Summary
protected  java.lang.String activePlugin
           
protected  java.util.List plugins
           
protected  SidebarConfigElement sidebarConfig
           
 
Constructor Summary
SidebarBean()
          Default constructor
 
Method Summary
 java.lang.String getActivePlugin()
          Returns the id of the currently active plugin
 java.lang.String getActivePluginPage()
          Returns the path of the JSP to use for the current plugin
 java.util.List getPlugins()
          Returns a list of configured plugins
static SidebarConfigElement getSidebarConfig(javax.faces.context.FacesContext context)
          Returns the SidebarConfigElement for the application
 void pluginChanged(javax.faces.event.ActionEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activePlugin

protected java.lang.String activePlugin

plugins

protected java.util.List plugins

sidebarConfig

protected SidebarConfigElement sidebarConfig
Constructor Detail

SidebarBean

public SidebarBean()
Default constructor

Method Detail

pluginChanged

public void pluginChanged(javax.faces.event.ActionEvent event)

getPlugins

public java.util.List getPlugins()
Returns a list of configured plugins

Returns:
List of UIListItem's representing the plugins available

getActivePlugin

public java.lang.String getActivePlugin()
Returns the id of the currently active plugin

Returns:
Id of the current plugin

getActivePluginPage

public java.lang.String getActivePluginPage()
Returns the path of the JSP to use for the current plugin

Returns:
JSP to use for the current plugin

getSidebarConfig

public static SidebarConfigElement getSidebarConfig(javax.faces.context.FacesContext context)
Returns the SidebarConfigElement for the application

Parameters:
context - Faces context
Returns:
The SidebarConfigElement object or null if it's not found


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.