public class ActionEvent extends FacesEvent
An ActionEvent
represents the
activation of a user interface component (such as a UICommand
).
source
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, setPhaseId
getSource, toString
public ActionEvent(UIComponent component)
Construct a new event object from the specified source component and action command.
component
- Source UIComponent
for this eventIllegalArgumentException
- if component
is
null
public 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.IllegalArgumentException
- if component
is null
public boolean isAppropriateListener(FacesListener listener)