Class ClientBehaviorRedirectEventComponentWrapper
java.lang.Object
jakarta.faces.component.UIComponent
org.apache.myfaces.view.facelets.tag.composite.ClientBehaviorRedirectEventComponentWrapper
- All Implemented Interfaces:
- ClientBehaviorHolder,- PartialStateHolder,- StateHolder,- TransientStateHolder,- ComponentSystemEventListener,- FacesListener,- SystemEventListenerHolder,- FacesWrapper<UIComponent>,- EventListener
public class ClientBehaviorRedirectEventComponentWrapper
extends UIComponent
implements FacesWrapper<UIComponent>, ClientBehaviorHolder
This class has two usages:
 
 1. On ClientBehaviorAttachedObjectTargetImpl to redirect the incoming sourceEvent
 to the final targetEvent.   
 2. On FaceletsViewDeclarationLanguage.retargetAttachedObjects to redirect too, but
 this time is to allow chain events for nested composite components.
 
 This class also implements FacesWrapper interface, to make possible to retrieve the
 real component if necessary.
- Version:
- $Revision$ $Date$
- Author:
- Leonardo Uribe (latest modification by $Author$)
- 
Field SummaryFields inherited from class jakarta.faces.component.UIComponentATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, FACETS_KEY, VIEW_LOCATION_KEY
- 
Constructor SummaryConstructorsConstructorDescriptionClientBehaviorRedirectEventComponentWrapper(UIComponent composite, UIComponent delegate, String sourceEvent, String targetEvent, jakarta.el.ValueExpression targets) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddClientBehavior(String eventName, ClientBehavior behavior) protected voidaddFacesListener(FacesListener listener) voidbroadcast(FacesEvent event) voidvoiddecode(FacesContext context) voidencodeAll(FacesContext context) voidencodeBegin(FacesContext context) voidencodeChildren(FacesContext context) voidencodeEnd(FacesContext context) findComponent(String expr) intgetClientId(FacesContext context) protected FacesContextprotected FacesListener[]getFacesListeners(Class clazz) intgetId()getListenersForEventClass(Class<? extends SystemEvent> eventClass) getPassThroughAttributes(boolean create) protected RenderergetRenderer(FacesContext context) booleanjakarta.el.ValueExpressionjakarta.el.ValueExpressiongetValueExpression(String name) booleanbooleaninvokeOnComponent(FacesContext context, String clientId, ContextCallback callback) booleanisInView()booleanbooleanvoidvoidprocessDecodes(FacesContext context) voidprocessEvent(ComponentSystemEvent event) voidprocessRestoreState(FacesContext context, Object state) processSaveState(FacesContext context) voidprocessUpdates(FacesContext context) voidprocessValidators(FacesContext context) voidqueueEvent(FacesEvent event) protected voidremoveFacesListener(FacesListener listener) voidrestoreState(FacesContext context, Object state) saveState(FacesContext context) voidvoidsetInView(boolean isInView) voidsetParent(UIComponent parent) voidsetRendered(boolean rendered) voidsetRendererType(String rendererType) voidsetTransient(boolean newTransientValue) voidsetValueExpression(String name, jakarta.el.ValueExpression expression) voidsubscribeToEvent(Class<? extends SystemEvent> eventClass, ComponentSystemEventListener componentListener) voidunsubscribeFromEvent(Class<? extends SystemEvent> eventClass, ComponentSystemEventListener componentListener) booleanvisitTree(VisitContext context, VisitCallback callback) Methods inherited from class jakarta.faces.component.UIComponentgetCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getPassThroughAttributes, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, isCompositeComponent, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState
- 
Constructor Details- 
ClientBehaviorRedirectEventComponentWrapperpublic ClientBehaviorRedirectEventComponentWrapper(UIComponent composite, UIComponent delegate, String sourceEvent, String targetEvent, jakarta.el.ValueExpression targets) 
 
- 
- 
Method Details- 
getWrapped- Specified by:
- getWrappedin interface- FacesWrapper<UIComponent>
 
- 
addClientBehavior- Specified by:
- addClientBehaviorin interface- ClientBehaviorHolder
 
- 
getClientBehaviors- Specified by:
- getClientBehaviorsin interface- ClientBehaviorHolder
 
- 
getDefaultEventName- Specified by:
- getDefaultEventNamein interface- ClientBehaviorHolder
 
- 
getEventNames- Specified by:
- getEventNamesin interface- ClientBehaviorHolder
 
- 
broadcast- Specified by:
- broadcastin class- UIComponent
- Throws:
- AbortProcessingException
 
- 
clearInitialStatepublic void clearInitialState()- Specified by:
- clearInitialStatein interface- PartialStateHolder
- Overrides:
- clearInitialStatein class- UIComponent
 
- 
decode- Specified by:
- decodein class- UIComponent
 
- 
encodeAll- Overrides:
- encodeAllin class- UIComponent
- Throws:
- IOException
 
- 
encodeBegin- Specified by:
- encodeBeginin class- UIComponent
- Throws:
- IOException
 
- 
encodeChildren- Specified by:
- encodeChildrenin class- UIComponent
- Throws:
- IOException
 
- 
encodeEnd- Specified by:
- encodeEndin class- UIComponent
- Throws:
- IOException
 
- 
findComponent- Specified by:
- findComponentin class- UIComponent
 
- 
getAttributes- Specified by:
- getAttributesin class- UIComponent
 
- 
getChildCountpublic int getChildCount()- Specified by:
- getChildCountin class- UIComponent
 
- 
getChildren- Specified by:
- getChildrenin class- UIComponent
 
- 
getClientId- Overrides:
- getClientIdin class- UIComponent
 
- 
getClientId- Specified by:
- getClientIdin class- UIComponent
 
- 
getContainerClientId- Overrides:
- getContainerClientIdin class- UIComponent
 
- 
getFacet- Specified by:
- getFacetin class- UIComponent
 
- 
getFacetCountpublic int getFacetCount()- Overrides:
- getFacetCountin class- UIComponent
 
- 
getFacets- Specified by:
- getFacetsin class- UIComponent
 
- 
getFacetsAndChildren- Specified by:
- getFacetsAndChildrenin class- UIComponent
 
- 
getFamily- Specified by:
- getFamilyin class- UIComponent
 
- 
getId- Specified by:
- getIdin class- UIComponent
 
- 
getListenersForEventClass- Specified by:
- getListenersForEventClassin interface- SystemEventListenerHolder
- Overrides:
- getListenersForEventClassin class- UIComponent
 
- 
getNamingContainer- Overrides:
- getNamingContainerin class- UIComponent
 
- 
getParent- Specified by:
- getParentin class- UIComponent
 
- 
getRendererType- Specified by:
- getRendererTypein class- UIComponent
 
- 
getRendersChildrenpublic boolean getRendersChildren()- Specified by:
- getRendersChildrenin class- UIComponent
 
- 
getResourceBundleMap- Overrides:
- getResourceBundleMapin class- UIComponent
 
- 
getValueExpression- Overrides:
- getValueExpressionin class- UIComponent
 
- 
initialStateMarkedpublic boolean initialStateMarked()- Specified by:
- initialStateMarkedin interface- PartialStateHolder
- Overrides:
- initialStateMarkedin class- UIComponent
 
- 
invokeOnComponentpublic boolean invokeOnComponent(FacesContext context, String clientId, ContextCallback callback) throws FacesException - Overrides:
- invokeOnComponentin class- UIComponent
- Throws:
- FacesException
 
- 
isInViewpublic boolean isInView()- Overrides:
- isInViewin class- UIComponent
 
- 
isRenderedpublic boolean isRendered()- Specified by:
- isRenderedin class- UIComponent
 
- 
isTransientpublic boolean isTransient()- Specified by:
- isTransientin interface- StateHolder
 
- 
markInitialStatepublic void markInitialState()- Specified by:
- markInitialStatein interface- PartialStateHolder
- Overrides:
- markInitialStatein class- UIComponent
 
- 
processDecodes- Specified by:
- processDecodesin class- UIComponent
 
- 
processEvent- Specified by:
- processEventin interface- ComponentSystemEventListener
- Overrides:
- processEventin class- UIComponent
- Throws:
- AbortProcessingException
 
- 
processRestoreState- Specified by:
- processRestoreStatein class- UIComponent
 
- 
processSaveState- Specified by:
- processSaveStatein class- UIComponent
 
- 
processUpdates- Specified by:
- processUpdatesin class- UIComponent
 
- 
processValidators- Specified by:
- processValidatorsin class- UIComponent
 
- 
queueEvent- Specified by:
- queueEventin class- UIComponent
 
- 
restoreState- Specified by:
- restoreStatein interface- StateHolder
 
- 
saveState- Specified by:
- saveStatein interface- StateHolder
 
- 
setId- Specified by:
- setIdin class- UIComponent
 
- 
setInViewpublic void setInView(boolean isInView) - Overrides:
- setInViewin class- UIComponent
 
- 
setParent- Specified by:
- setParentin class- UIComponent
 
- 
setRenderedpublic void setRendered(boolean rendered) - Specified by:
- setRenderedin class- UIComponent
 
- 
setRendererType- Specified by:
- setRendererTypein class- UIComponent
 
- 
setTransientpublic void setTransient(boolean newTransientValue) - Specified by:
- setTransientin interface- StateHolder
 
- 
setValueExpression- Overrides:
- setValueExpressionin class- UIComponent
 
- 
subscribeToEventpublic void subscribeToEvent(Class<? extends SystemEvent> eventClass, ComponentSystemEventListener componentListener) - Overrides:
- subscribeToEventin class- UIComponent
 
- 
unsubscribeFromEventpublic void unsubscribeFromEvent(Class<? extends SystemEvent> eventClass, ComponentSystemEventListener componentListener) - Overrides:
- unsubscribeFromEventin class- UIComponent
 
- 
visitTree- Overrides:
- visitTreein class- UIComponent
 
- 
getFacesContext- Specified by:
- getFacesContextin class- UIComponent
 
- 
addFacesListener- Specified by:
- addFacesListenerin class- UIComponent
 
- 
getFacesListeners- Specified by:
- getFacesListenersin class- UIComponent
 
- 
getRenderer- Specified by:
- getRendererin class- UIComponent
 
- 
removeFacesListener- Specified by:
- removeFacesListenerin class- UIComponent
 
- 
getPassThroughAttributes- Overrides:
- getPassThroughAttributesin class- UIComponent
 
- 
getComposite
- 
getDelegate
- 
getTargetspublic jakarta.el.ValueExpression getTargets()
 
-