- java.lang.Object
-
- java.util.EventObject
-
- jakarta.faces.event.FacesEvent
-
- org.omnifaces.event.FacesEventWrapper
-
- All Implemented Interfaces:
FacesWrapper<FacesEvent>,Serializable
public abstract class FacesEventWrapper extends FacesEvent implements FacesWrapper<FacesEvent>
Provides a simple implementation ofFacesEventthat can be sub-classed by developers wishing to provide specialized behavior to an existingFacesEventinstance without the need to implement/override all the methods which do not necessarily need to be implemented. The default implementation of all methods expect ofEventObject.getSource()andFacesEvent.getComponent()is to call through to the wrappedFacesEvent.- Since:
- 1.1
- Author:
- Bauke Scholtz
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFacesEventWrapper(FacesEvent wrapped, UIComponent component)Construct a new faces event wrapper which wraps the given faces event for the given component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PhaseIdgetPhaseId()FacesEventgetWrapped()booleanisAppropriateListener(FacesListener listener)voidprocessListener(FacesListener listener)voidqueue()voidsetPhaseId(PhaseId phaseId)-
Methods inherited from class jakarta.faces.event.FacesEvent
getComponent, getFacesContext
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
FacesEventWrapper
protected FacesEventWrapper(FacesEvent wrapped, UIComponent component)
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 Detail
-
queue
public void queue()
- Overrides:
queuein classFacesEvent
-
isAppropriateListener
public boolean isAppropriateListener(FacesListener listener)
- Specified by:
isAppropriateListenerin classFacesEvent
-
processListener
public void processListener(FacesListener listener)
- Specified by:
processListenerin classFacesEvent
-
getPhaseId
public PhaseId getPhaseId()
- Overrides:
getPhaseIdin classFacesEvent
-
setPhaseId
public void setPhaseId(PhaseId phaseId)
- Overrides:
setPhaseIdin classFacesEvent
-
getWrapped
public FacesEvent getWrapped()
- Specified by:
getWrappedin interfaceFacesWrapper<FacesEvent>
-
-