public class ToggleControl extends ClientBehavior
The <rich:toggleControl> behavior can be attached to any interface component, whether inside or outside the controlled panel itself. It works with a <rich:togglePanel> component to switch between different <rich:togglePanelItem> components.
Modifier and Type | Field and Description |
---|---|
static String |
BEHAVIOR_ID |
Constructor and Description |
---|
ToggleControl() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getDisableDefault() |
static AbstractTogglePanel |
getEnclosedPanel(javax.faces.component.UIComponent comp) |
String |
getEvent()
The event on which to toggle the target panel
|
AbstractTogglePanel |
getPanel(javax.faces.component.UIComponent comp) |
String |
getPanelId(javax.faces.component.behavior.ClientBehaviorContext behaviorContext) |
String |
getRendererType() |
String |
getTargetItem()
The next <rich:togglePanelItem> to switch to
|
String |
getTargetPanel()
The <rich:togglePanel> to switch when this <rich:toggleControl> is not a child of a <rich:togglePanel>
|
void |
setDisableDefault(Boolean disableDefault)
If "true", disable the default action of the parent component
|
void |
setEvent(String eventName) |
void |
setLiteralAttribute(String name,
Object value) |
void |
setTargetItem(String target) |
void |
setTargetPanel(String selector) |
compare, getFacesContext, getStateHelper, getValueExpression, restoreState, saveState, setLiteralValue, setValueExpression
decode, getHints, getRenderer, getScript
addBehaviorListener, broadcast, clearInitialState, initialStateMarked, isTransient, markInitialState, removeBehaviorListener, setTransient
public static final String BEHAVIOR_ID
public String getEvent()
public void setEvent(String eventName)
public String getTargetItem()
public void setTargetItem(String target)
public String getTargetPanel()
public void setTargetPanel(String selector)
public void setDisableDefault(Boolean disableDefault)
public Boolean getDisableDefault()
public String getPanelId(javax.faces.component.behavior.ClientBehaviorContext behaviorContext) throws javax.faces.FacesException
javax.faces.FacesException
public AbstractTogglePanel getPanel(javax.faces.component.UIComponent comp) throws javax.faces.FacesException
javax.faces.FacesException
public static AbstractTogglePanel getEnclosedPanel(javax.faces.component.UIComponent comp)
public String getRendererType()
getRendererType
in class javax.faces.component.behavior.ClientBehaviorBase
public void setLiteralAttribute(String name, Object value)
setLiteralAttribute
in class ClientBehavior
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.