public class ActionEvent extends FacesEvent
An ActionEvent represents the activation of a user interface component (such as a UICommand).
| Constructor and Description |
|---|
ActionEvent(FacesContext facesContext,
UIComponent component)
Construct a new event object from the Faces context, specified source component and action command. |
ActionEvent(UIComponent component)
Construct a new event object from the specified source component and action command. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAppropriateListener(FacesListener listener)
Return
true if this FacesListener is an instance of a listener class that this event supports. |
void |
processListener(FacesListener listener)
Broadcast this
FacesEvent to the specified FacesListener, by whatever mechanism is appropriate. |
getComponent, getFacesContext, getPhaseId, queue, setPhaseIdpublic ActionEvent(UIComponent component)
Construct a new event object from the specified source component and action command.
component - Source UIComponent for this eventjava.lang.IllegalArgumentException - if component is nullpublic ActionEvent(FacesContext facesContext, UIComponent component)
Construct a new event object from the Faces context, specified source component and action command.
facesContext - the Faces context.component - Source UIComponent for this event.java.lang.IllegalArgumentException - if component is nullpublic boolean isAppropriateListener(FacesListener listener)
FacesEvent
Return true if this FacesListener is an instance of a listener class that this event supports.
Typically, this will be accomplished by an "instanceof" check on the listener class.
isAppropriateListener in class FacesEventlistener - FacesListener to evaluatepublic void processListener(FacesListener listener)
FacesEvent
Broadcast this FacesEvent to the specified FacesListener, by whatever mechanism is appropriate.
Typically, this will be accomplished by calling an event processing method, and passing this FacesEvent as a
paramter.
processListener in class FacesEventlistener - FacesListener to send this FacesEvent toAbortProcessingException - Signal the Jakarta Faces implementation that no further processing on the
current event should be performed