Package javax.faces.event
Class BehaviorEvent
java.lang.Object
java.util.EventObject
javax.faces.event.FacesEvent
javax.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
ConstructorDescriptionBehaviorEvent
(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 javax.faces.event.FacesEvent
getComponent, getFacesContext, getPhaseId, isAppropriateListener, processListener, queue, setPhaseId
Methods 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
- 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
-