public abstract class BaseComponent extends UIComponentBase
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
Constructor and Description |
---|
BaseComponent() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAttributes() |
protected Object |
getPropertyOrBindingValue(String name,
Object specifiedValue,
Object defaultValue)
Gets property value using specified value,
the
ValueExpression for the specified name,
or the default value. |
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
boolean |
setBindingValue(String name,
Object value)
Sets the
ValueExpression for the specified name, if possible. |
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getFamily, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
protected Object getPropertyOrBindingValue(String name, Object specifiedValue, Object defaultValue)
ValueExpression
for the specified name,
or the default value.
This method will return null only if the defaultValue is null.name
- Property name.specifiedValue
- User-specified value.defaultValue
- Default value.public boolean setBindingValue(String name, Object value)
ValueExpression
for the specified name, if possible.name
- Property name.value
- Value.public Map<String,Object> getAttributes()
getAttributes
in class UIComponentBase
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