java.lang.Object
java.util.EventObject
jakarta.faces.event.FacesEvent
org.omnifaces.event.FacesEventWrapper
- All Implemented Interfaces:
FacesWrapper<FacesEvent>,Serializable
Provides a simple implementation of
FacesEvent that can be sub-classed by developers wishing to provide
specialized behavior to an existing FacesEvent instance without the need to implement/override all the
methods which do not necessarily need to be implemented. The default implementation of all methods expect of
EventObject.getSource() and FacesEvent.getComponent() is to call through to the wrapped
FacesEvent.- Since:
- 1.1
- Author:
- Bauke Scholtz
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFacesEventWrapper(FacesEvent wrapped, UIComponent component) Construct a new faces event wrapper which wraps the given faces event for the given component. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAppropriateListener(FacesListener listener) voidprocessListener(FacesListener listener) voidqueue()voidsetPhaseId(PhaseId phaseId) Methods inherited from class jakarta.faces.event.FacesEvent
getComponent, getFacesContextMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
FacesEventWrapper
Construct a new faces event wrapper which wraps the given faces event for the given component.- Parameters:
wrapped- The faces event to be wrapped.component- The component to broadcast this event for.
-
-
Method Details
-
queue
public void queue()- Overrides:
queuein classFacesEvent
-
isAppropriateListener
- Specified by:
isAppropriateListenerin classFacesEvent
-
processListener
- Specified by:
processListenerin classFacesEvent
-
getPhaseId
- Overrides:
getPhaseIdin classFacesEvent
-
setPhaseId
- Overrides:
setPhaseIdin classFacesEvent
-
getWrapped
- Specified by:
getWrappedin interfaceFacesWrapper<FacesEvent>
-