public class AjaxBehaviorEvent extends BehaviorEvent
AjaxBehaviorEvent
represents the component behavior specific to
Ajax
).
Constructor and Description |
---|
AjaxBehaviorEvent(FacesContext facesContext,
UIComponent component,
Behavior behavior)
Construct a new event object from the Faces context, specified source component and Ajax behavior. |
AjaxBehaviorEvent(UIComponent component,
Behavior behavior)
Construct a new event object from the specified source component and Ajax behavior. |
Modifier and Type | Method and Description |
---|---|
boolean |
isAppropriateListener(FacesListener listener)
Return |
void |
processListener(FacesListener listener)
Broadcast this event instance
to the specified |
getBehavior
getComponent, getFacesContext, getPhaseId, queue, setPhaseId
public AjaxBehaviorEvent(UIComponent component, Behavior behavior)
Construct a new event object from the specified source component and Ajax behavior.
component
- Source UIComponent
for this eventbehavior
- Behavior
for this eventjava.lang.IllegalArgumentException
- if component
or
ajaxBehavior
is null
public AjaxBehaviorEvent(FacesContext facesContext, UIComponent component, Behavior behavior)
Construct a new event object from the Faces context, specified source component and Ajax behavior.
facesContext
- the FacesContext.component
- Source UIComponent
for this eventbehavior
- Behavior
for this eventjava.lang.IllegalArgumentException
- if component
or
ajaxBehavior
is null
public boolean isAppropriateListener(FacesListener listener)
Return true
if this
FacesListener
is an instance of a the appropriate
listener class that this event supports.
isAppropriateListener
in class FacesEvent
listener
- FacesListener
to evaluatepublic void processListener(FacesListener listener)
Broadcast this event instance
to the specified FacesListener
, by whatever mechanism
is appropriate. Typically, this will be accomplished by calling
an event processing method, and passing this instance as a
parameter.
processListener
in class FacesEvent
listener
- FacesListener
to invokeAbortProcessingException
- Signal the Jakarta Server Faces
implementation that no further processing on the current event
should be performed