org.apache.myfaces.custom.collapsiblepanel
Class AbstractHtmlCollapsiblePanel
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
org.apache.myfaces.custom.collapsiblepanel.AbstractHtmlCollapsiblePanel
- All Implemented Interfaces:
- EventListener, javax.faces.component.behavior.ClientBehaviorHolder, javax.faces.component.EditableValueHolder, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, EventAware, org.apache.myfaces.component.StyleAware, org.apache.myfaces.component.UniversalProperties, org.apache.myfaces.component.UserRoleAware
public abstract class AbstractHtmlCollapsiblePanel
- extends javax.faces.component.UIInput
- implements org.apache.myfaces.component.StyleAware, org.apache.myfaces.component.UniversalProperties, EventAware, org.apache.myfaces.component.UserRoleAware, javax.faces.component.behavior.ClientBehaviorHolder
A component which just renders as a single icon (with optional label) when "collapsed", hiding all child components.
When open, the child components can be seen.
The title attribute defines the label shown for the collapsible panel.
- Since:
- 1.1.7
- Version:
- $Revision: 691856 $ $Date: 2008-09-03 21:40:30 -0500 (miƩ, 03 sep 2008) $
- Author:
- Kalle Korhonen (latest modification by $Author: lu4242 $)
Fields inherited from class javax.faces.component.UIInput |
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME |
Fields inherited from class javax.faces.component.UIComponent |
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY |
Fields inherited from interface org.apache.myfaces.component.UserRoleAware |
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR |
Methods inherited from class javax.faces.component.UIInput |
addValidator, addValueChangeListener, broadcast, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getFamily, getRequiredMessage, getSubmittedValue, getValidatorMessage, getValidators, getValue, getValueChangeListeners, isEmpty, isLocalValueSet, isValid, markInitialState, removeValidator, removeValueChangeListener, resetValue, restoreState, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, validate, validateValue |
Methods inherited from class javax.faces.component.UIOutput |
getConverter, getLocalValue, setConverter |
Methods inherited from class javax.faces.component.UIComponentBase |
addClientBehavior, addFacesListener, encodeAll, encodeBegin, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, initialStateMarked, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, visitTree |
Methods inherited from class javax.faces.component.UIComponent |
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.myfaces.component.StyleAware |
getStyle, getStyleClass |
Methods inherited from interface org.apache.myfaces.component.UniversalProperties |
getDir, getLang, getTitle |
Methods inherited from interface org.apache.myfaces.component.UserRoleAware |
getEnabledOnUserRole, getVisibleOnUserRole, setEnabledOnUserRole, setVisibleOnUserRole |
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder |
addClientBehavior, getClientBehaviors, getDefaultEventName, getEventNames |
Methods inherited from interface javax.faces.component.ValueHolder |
getConverter, getLocalValue, setConverter |
COMPONENT_TYPE
public static final String COMPONENT_TYPE
- See Also:
- Constant Field Values
COMPONENT_FAMILY
public static final String COMPONENT_FAMILY
- See Also:
- Constant Field Values
AbstractHtmlCollapsiblePanel
public AbstractHtmlCollapsiblePanel()
setCurrentlyCollapsed
public void setCurrentlyCollapsed(boolean collapsed)
isCurrentlyCollapsed
public boolean isCurrentlyCollapsed()
setHeader
public void setHeader(javax.faces.component.UIComponent header)
getHeader
public javax.faces.component.UIComponent getHeader()
setClosedContent
public void setClosedContent(javax.faces.component.UIComponent closedContent)
getClosedContent
public javax.faces.component.UIComponent getClosedContent()
processDecodes
public void processDecodes(javax.faces.context.FacesContext context)
- Overrides:
processDecodes
in class javax.faces.component.UIInput
getClientId
public String getClientId(javax.faces.context.FacesContext context)
- Overrides:
getClientId
in class javax.faces.component.UIComponentBase
processUpdates
public void processUpdates(javax.faces.context.FacesContext context)
- Overrides:
processUpdates
in class javax.faces.component.UIInput
processValidators
public void processValidators(javax.faces.context.FacesContext context)
- Overrides:
processValidators
in class javax.faces.component.UIInput
encodeChildren
public void encodeChildren(javax.faces.context.FacesContext context)
throws IOException
- Overrides:
encodeChildren
in class javax.faces.component.UIComponentBase
- Throws:
IOException
updateModel
public void updateModel(javax.faces.context.FacesContext context)
- Overrides:
updateModel
in class javax.faces.component.UIInput
isCollapsed
public boolean isCollapsed()
isCollapsed
public static boolean isCollapsed(Object collapsedValue)
getVar
public abstract String getVar()
- The variable which you can use to check for the collapsed
state of the enclosing component. This is especially useful
for custom headers you define in a facet with name 'header'.
getTitleVar
public abstract String getTitleVar()
- This variable is defined to hold the value of the title
component - you can use it for accessing this value in
custom headers you define in a facet with name 'header'.
getValidator
public javax.faces.el.MethodBinding getValidator()
- Specified by:
getValidator
in interface javax.faces.component.EditableValueHolder
- Overrides:
getValidator
in class javax.faces.component.UIInput
getValueChangeListener
public javax.faces.el.MethodBinding getValueChangeListener()
- Specified by:
getValueChangeListener
in interface javax.faces.component.EditableValueHolder
- Overrides:
getValueChangeListener
in class javax.faces.component.UIInput
isImmediate
public boolean isImmediate()
- Specified by:
isImmediate
in interface javax.faces.component.EditableValueHolder
- Overrides:
isImmediate
in class javax.faces.component.UIInput
isRequired
public boolean isRequired()
- Specified by:
isRequired
in interface javax.faces.component.EditableValueHolder
- Overrides:
isRequired
in class javax.faces.component.UIInput
getIndicatorStyleClass
@JSFProperty
public abstract String getIndicatorStyleClass()
- The CSS class for this element. Corresponds to the HTML 'class' attribute for the generated indicator span.
This attribute is ignored if a custom "header" facet is provided
for the collapsible panel
- Returns:
getIndicatorStyle
@JSFProperty
public abstract String getIndicatorStyle()
- HTML: CSS styling instructions for the generated indicator.
This attribute is ignored if a custom "header" facet is provided
for the collapsible panel
- Returns:
getTitleStyleClass
@JSFProperty
public abstract String getTitleStyleClass()
- The CSS class for this element. Corresponds to the HTML 'class' attribute for the generated title.
This attribute is ignored if a custom "header" facet is provided
for the collapsible panel
- Returns:
getTitleStyle
@JSFProperty
public abstract String getTitleStyle()
- HTML: CSS styling instructions for the generated title.
This attribute is ignored if a custom "header" facet is provided
for the collapsible panel
- Returns:
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.