public class UISidebar
extends org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
A sidebar consists of multiple plugins, of which only one is active at one time. All registered plugins are displayed in a drop down allowing the user to change the active plugin. An action group can also be associated with a plugin, which get rendered in the sidebar header.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
activePlugin |
static java.lang.String |
COMPONENT_TYPE |
| Constructor and Description |
|---|
UISidebar() |
| Modifier and Type | Method and Description |
|---|---|
void |
encodeBegin(javax.faces.context.FacesContext context) |
void |
encodeChildren(javax.faces.context.FacesContext context) |
void |
encodeEnd(javax.faces.context.FacesContext context) |
java.lang.String |
getActivePlugin()
Returns the id of the plugin that is currently active
|
java.lang.String |
getFamily() |
boolean |
getRendersChildren() |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state) |
java.lang.Object |
saveState(javax.faces.context.FacesContext context) |
void |
setActivePlugin(java.lang.String activePlugin)
Sets the active plugin the sidebar should show
|
protected void |
setupActionGroupId(javax.faces.context.FacesContext context,
UIActions actionsComponent)
Sets up the corrent actions config group id on the given actions
component.
|
outputAttributeaddFacesListener, broadcast, decode, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBindingpublic static final java.lang.String COMPONENT_TYPE
protected java.lang.String activePlugin
public java.lang.String getFamily()
getFamily in class javax.faces.component.UIComponentpublic void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIComponentBasepublic java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIComponentBasepublic void encodeBegin(javax.faces.context.FacesContext context)
throws java.io.IOException
encodeBegin in class javax.faces.component.UIComponentBasejava.io.IOExceptionpublic void encodeChildren(javax.faces.context.FacesContext context)
throws java.io.IOException
encodeChildren in class javax.faces.component.UIComponentBasejava.io.IOExceptionpublic void encodeEnd(javax.faces.context.FacesContext context)
throws java.io.IOException
encodeEnd in class javax.faces.component.UIComponentBasejava.io.IOExceptionpublic boolean getRendersChildren()
getRendersChildren in class javax.faces.component.UIComponentBasepublic java.lang.String getActivePlugin()
public void setActivePlugin(java.lang.String activePlugin)
activePlugin - Id of the plugin to make activeprotected void setupActionGroupId(javax.faces.context.FacesContext context,
UIActions actionsComponent)
context - Faces contextactionsComponent - The actions component to set the group id forCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.