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
-
Fields inherited from class java.util.EventObject
source
-
-
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
All Methods Instance Methods Concrete Methods 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
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
BehaviorEvent
public BehaviorEvent(UIComponent component, Behavior behavior)
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
public BehaviorEvent(FacesContext facesContext, UIComponent component, Behavior behavior)
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
-
-