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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumBehavior events supported by Faces components. -
Field Summary
Fields inherited from class 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 FacesEvent
getComponent, getFacesContext, getPhaseId, isAppropriateListener, processListener, queue, setPhaseIdModifier and TypeMethodDescriptionReturn the sourceUIComponentthat sent this event.Get the Faces context.Return the identifier of the request processing phase during which this event should be delivered.abstract booleanisAppropriateListener(FacesListener listener) Returntrueif thisFacesListeneris an instance of a listener class that this event supports.abstract voidprocessListener(FacesListener listener) Broadcast thisFacesEventto the specifiedFacesListener, by whatever mechanism is appropriate.voidqueue()Convenience method to queue this event for broadcast at the end of the current request processing lifecycle phase.voidsetPhaseId(PhaseId phaseId) Set thePhaseIdduring which this event will be delivered.Methods inherited from class 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
-