public abstract class FacesEventWrapper extends FacesEvent implements FacesWrapper<FacesEvent>
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
.source
Constructor and Description |
---|
FacesEventWrapper(FacesEvent wrapped,
UIComponent component)
Construct a new faces event wrapper which wraps the given faces event for the given component.
|
Modifier and Type | Method and Description |
---|---|
PhaseId |
getPhaseId() |
FacesEvent |
getWrapped() |
boolean |
isAppropriateListener(FacesListener listener) |
void |
processListener(FacesListener listener) |
void |
queue() |
void |
setPhaseId(PhaseId phaseId) |
getComponent
getSource, toString
public FacesEventWrapper(FacesEvent wrapped, UIComponent component)
wrapped
- The faces event to be wrapped.component
- The component to broadcast this event for.public void queue()
queue
in class FacesEvent
public boolean isAppropriateListener(FacesListener listener)
isAppropriateListener
in class FacesEvent
public void processListener(FacesListener listener)
processListener
in class FacesEvent
public PhaseId getPhaseId()
getPhaseId
in class FacesEvent
public void setPhaseId(PhaseId phaseId)
setPhaseId
in class FacesEvent
public FacesEvent getWrapped()
getWrapped
in interface FacesWrapper<FacesEvent>
Copyright © 2012–2016 OmniFaces. All rights reserved.