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