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 BehaviorgetBehavior()Return the sourceBehaviorthat 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- 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
-