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
 BehaviorEvent is the event that can be generated from
 component Behavior.
 
- Since:
 - 2.0
 - See Also:
 
- 
Field Summary
Fields inherited from class java.util.EventObject
source - 
Constructor Summary
ConstructorsConstructorDescriptionBehaviorEvent(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
Methods inherited from class jakarta.faces.event.FacesEvent
getComponent, getFacesContext, getPhaseId, isAppropriateListener, processListener, queue, setPhaseIdMethods inherited from class java.util.EventObject
getSource, toString 
- 
Constructor Details
- 
BehaviorEvent
Construct a new event object from the specified source component and
behavior.- Parameters:
 component- SourceUIComponentfor this eventbehavior-Behaviorthat sent this event- Throws:
 IllegalArgumentException- ifcomponentorbehaviorisnull- Since:
 - 2.0
 
 - 
BehaviorEvent
Construct a new event object from the Faces context, specified source component and behavior.
- Parameters:
 facesContext- the Faces context.component- SourceUIComponentfor this eventbehavior-Behaviorthat sent this event- Throws:
 IllegalArgumentException- ifcomponentorbehaviorisnull- Since:
 - 2.3
 
 
 - 
 - 
Method Details
- 
getBehavior
Return the source
Behaviorthat sent this event.- Returns:
 - the 
Behavior - Since:
 - 2.0
 
 
 -