Top Description Fields Constructors Methods
jakarta.faces.event

public abstract Class BehaviorEvent

extends FacesEvent
Class Inheritance
Known Direct Subclasses
jakarta.faces.event.AjaxBehaviorEvent
Imports
jakarta.faces.component.UIComponent, jakarta.faces.component.behavior.Behavior, jakarta.faces.context.FacesContext

BehaviorEvent is the event that can be generated from component jakarta.faces.component.behavior.Behavior.

Since
2.0

Field Summary

Modifier and TypeField and Description
private final Behavior
private static final long

Constructor Summary

AccessConstructor and Description
public
BehaviorEvent(UIComponent
Source UIComponent for this event
component
,
Behavior
Behavior that sent this event
behavior
)

Construct a new event object from the specified source component and behavior.

public
BehaviorEvent(FacesContext
the Faces context.
facesContext
,
UIComponent
Source UIComponent for this event
component
,
Behavior
Behavior that sent this event
behavior
)

Construct a new event object from the Faces context, specified source component and behavior.

Method Summary

Modifier and TypeMethod and Description
public Behavior

Returns:

the Behavior
getBehavior
()

Return the source Behavior that sent this event.

Inherited from jakarta.faces.event.FacesEvent:
getComponentgetFacesContextgetPhaseIdisAppropriateListenerprocessListenerqueuesetPhaseId

Field Detail

behaviorback to summary
private final Behavior behavior
serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.faces.event.FacesEvent.serialVersionUID.

Constructor Detail

BehaviorEventback to summary
public BehaviorEvent(UIComponent component, Behavior behavior)

Construct a new event object from the specified source component and behavior.

Parameters
component:UIComponent

Source UIComponent for this event

behavior:Behavior

Behavior that sent this event

Exceptions
IllegalArgumentException:
if component or behavior is null
Since
2.0
BehaviorEventback to summary
public BehaviorEvent(FacesContext facesContext, UIComponent component, Behavior behavior)

Construct a new event object from the Faces context, specified source component and behavior.

Parameters
facesContext:FacesContext

the Faces context.

component:UIComponent

Source UIComponent for this event

behavior:Behavior

Behavior that sent this event

Exceptions
IllegalArgumentException:
if component or behavior is null
Since
2.3

Method Detail

getBehaviorback to summary
public Behavior getBehavior()

Return the source Behavior that sent this event.

Returns:Behavior

the Behavior

Since
2.0