Package jakarta.faces.event
Class BehaviorEvent
java.lang.Object
java.util.EventObject
jakarta.faces.event.FacesEvent
jakarta.faces.event.BehaviorEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AjaxBehaviorEvent
public abstract class BehaviorEvent extends FacesEvent
BehaviorEvent is the event that can be generated from
component Behavior
.
- Since:
- 2.0
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BehaviorEvent(UIComponent component, Behavior behavior)
Construct a new event object from the specified source component andbehavior
.BehaviorEvent(FacesContext facesContext, UIComponent component, Behavior behavior)
Construct a new event object from the Faces context, specified source component and behavior. -
Method Summary
Modifier and Type Method Description Behavior
getBehavior()
Return the sourceBehavior
that sent this event.Methods inherited from class jakarta.faces.event.FacesEvent
getComponent, getFacesContext, getPhaseId, isAppropriateListener, processListener, queue, setPhaseId
-
Constructor Details
-
BehaviorEvent
Construct a new event object from the specified source component and
behavior
.- Parameters:
component
- SourceUIComponent
for this eventbehavior
-Behavior
that sent this event- Throws:
IllegalArgumentException
- ifcomponent
orbehavior
isnull
- Since:
- 2.0
-
BehaviorEvent
Construct a new event object from the Faces context, specified source component and behavior.
- Parameters:
facesContext
- the Faces context.component
- SourceUIComponent
for this eventbehavior
-Behavior
that sent this event- Throws:
IllegalArgumentException
- ifcomponent
orbehavior
isnull
- Since:
- 2.3
-
-
Method Details
-
getBehavior
Return the source
Behavior
that sent this event.- Returns:
- the
Behavior
- Since:
- 2.0
-