Class BaseComponent
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
com.webmethods.caf.faces.component.BaseComponent
- All Implemented Interfaces:
EventListener
,PartialStateHolder
,StateHolder
,TransientStateHolder
,ComponentSystemEventListener
,FacesListener
,SystemEventListenerHolder
- Direct Known Subclasses:
AddRow
,BaseBehavior
,BaseTreeControl.DummyComponent
,DataPager
,InitiateToggle
,InjectJSFState
,LoadResourceBundle
,MoveRow
,PortletInclude
,PortletUrl
,RefreshInterval
,RemoveRow
,SelectRow
,VariableContainer
Base CAF component class.
-
Field Summary
Fields inherited from class javax.faces.component.UIComponent
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
getPropertyOrBindingValue
(String name, Object specifiedValue, Object defaultValue) Gets property value using specified value, theValueExpression
for the specified name, or the default value.void
restoreState
(FacesContext context, Object state) saveState
(FacesContext context) boolean
setBindingValue
(String name, Object value) Sets theValueExpression
for the specified name, if possible.Methods inherited from class javax.faces.component.UIComponentBase
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
Methods inherited from class javax.faces.component.UIComponent
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
-
Constructor Details
-
BaseComponent
public BaseComponent()
-
-
Method Details
-
getPropertyOrBindingValue
Gets property value using specified value, theValueExpression
for the specified name, or the default value. This method will return null only if the defaultValue is null.- Parameters:
name
- Property name.specifiedValue
- User-specified value.defaultValue
- Default value.
-
setBindingValue
Sets theValueExpression
for the specified name, if possible.- Parameters:
name
- Property name.value
- Value.- Returns:
- True if binding was set.
-
getAttributes
- Overrides:
getAttributes
in classUIComponentBase
-
restoreState
- Specified by:
restoreState
in interfaceStateHolder
- Overrides:
restoreState
in classUIComponentBase
-
saveState
- Specified by:
saveState
in interfaceStateHolder
- Overrides:
saveState
in classUIComponentBase
-