FacesEvent is the base class
for user interface and application events that can be fired by UIComponents.
Concrete event classes must subclass FacesEvent in order to be supported
by the request processing lifecycle.
| Modifier and Type | Field and Description |
|---|---|
| private transient FacesContext | facesContext
Stores the Faces context. |
| private PhaseId | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | FacesEvent(UIComponent
Source component)UIComponent for this eventConstruct a new event object from the specified source component. |
| public | FacesEvent(FacesContext
the Faces context. facesContext, UIComponent Source component)UIComponent for this event.Construct a new event object from the Faces context and specified source component. |
| Modifier and Type | Method and Description |
|---|---|
| public UIComponent | |
| public FacesContext | |
| public PhaseId | Returns: the phase id.Return the identifier of the request processing phase during which this event should be delivered. |
| public abstract boolean | Returns: true if it is the appropriate instance, false otherwise.FacesListener to evaluateReturn |
| public abstract void | processListener(FacesListener
FacesListener to send this FacesEvent toBroadcast this |
| public void | queue()
Convenience method to queue this event for broadcast at the end of the current request processing lifecycle phase. |
| public void |
| facesContext | back to summary |
|---|---|
| private transient FacesContext facesContext Stores the Faces context. | |
| phaseId | back to summary |
|---|---|
| private PhaseId phaseId | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| FacesEvent | back to summary |
|---|---|
| public FacesEvent(UIComponent component) Construct a new event object from the specified source component.
| |
| FacesEvent | back to summary |
|---|---|
| public FacesEvent(FacesContext facesContext, UIComponent component) Construct a new event object from the Faces context and specified source component.
| |
| getComponent | back to summary |
|---|---|
| public UIComponent getComponent() Return the source
| |
| getFacesContext | back to summary |
|---|---|
| public FacesContext getFacesContext() Get the Faces context. If the constructor was passed a FacesContext we return it, otherwise we call FacesContext.getCurrentInstance() and return it.
| |
| getPhaseId | back to summary |
|---|---|
| public PhaseId getPhaseId() Return the identifier of the request processing phase during
which this event should be delivered. Legal values are the
singleton instances defined by the
| |
| isAppropriateListener | back to summary |
|---|---|
| public abstract boolean isAppropriateListener(FacesListener listener) Return
| |
| processListener | back to summary |
|---|---|
| public abstract void processListener(FacesListener listener) Broadcast this
| |
| queue | back to summary |
|---|---|
| public void queue() Convenience method to queue this event for broadcast at the end of the current request processing lifecycle phase.
| |
| setPhaseId | back to summary |
|---|---|
| public void setPhaseId(PhaseId phaseId) Set the
| |