Class 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:
  • Constructor Details

    • BehaviorEvent

      public BehaviorEvent(UIComponent component, Behavior behavior)

      Construct a new event object from the specified source component and behavior.

      Parameters:
      component - Source UIComponent for this event
      behavior - Behavior that sent this event
      Throws:
      IllegalArgumentException - if component or behavior is null
      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 - Source UIComponent for this event
      behavior - Behavior that sent this event
      Throws:
      IllegalArgumentException - if component or behavior is null
      Since:
      2.3
  • Method Details

    • getBehavior

      public Behavior getBehavior()

      Return the source Behavior that sent this event.

      Returns:
      the Behavior
      Since:
      2.0