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)
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 FacesEvent
listener
- 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 FacesEvent
listener
- FacesListener
to send this FacesEvent
toAbortProcessingException
- Signal the JavaServer Faces
implementation that no further processing on the current event
should be performedCopyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.