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 String |
activePlugin |
static String |
COMPONENT_TYPE |
Constructor and Description |
---|
UISidebar() |
Modifier and Type | Method and Description |
---|---|
void |
encodeBegin(FacesContext context) |
void |
encodeChildren(FacesContext context) |
void |
encodeEnd(FacesContext context) |
String |
getActivePlugin()
Returns the id of the plugin that is currently active
|
String |
getFamily() |
boolean |
getRendersChildren() |
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setActivePlugin(String activePlugin)
Sets the active plugin the sidebar should show
|
protected void |
setupActionGroupId(FacesContext context,
UIActions actionsComponent)
Sets up the corrent actions config group id on the given actions
component.
|
outputAttribute
addFacesListener, 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, setValueBinding
public static final String COMPONENT_TYPE
protected String activePlugin
public String getFamily()
getFamily
in class UIComponent
public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
restoreState
in class UIComponentBase
public Object saveState(FacesContext context)
saveState
in interface StateHolder
saveState
in class UIComponentBase
public void encodeBegin(FacesContext context) throws IOException
encodeBegin
in class UIComponentBase
IOException
public void encodeChildren(FacesContext context) throws IOException
encodeChildren
in class UIComponentBase
IOException
public void encodeEnd(FacesContext context) throws IOException
encodeEnd
in class UIComponentBase
IOException
public boolean getRendersChildren()
getRendersChildren
in class UIComponentBase
public String getActivePlugin()
public void setActivePlugin(String activePlugin)
activePlugin
- Id of the plugin to make activeprotected void setupActionGroupId(FacesContext context, UIActions actionsComponent)
context
- Faces contextactionsComponent
- The actions component to set the group id forCopyright © 2005–2017 Alfresco Software. All rights reserved.