Class ComponentSystemEvent

    • Constructor Detail

      • ComponentSystemEvent

        public ComponentSystemEvent​(UIComponent component)

        Pass the argument component to the superclass constructor.

        Parameters:
        component - the UIComponent reference to be passed to the superclass constructor.
        Throws:
        java.lang.IllegalArgumentException - if the argument is null.
        Since:
        2.0
      • ComponentSystemEvent

        public ComponentSystemEvent​(FacesContext facesContext,
                                    UIComponent component)

        Pass the argument component to the superclass constructor.

        Parameters:
        facesContext - the Faces context.
        component - the UIComponent reference to be passed to the superclass constructor.
        Throws:
        java.lang.IllegalArgumentException - if the argument is null.
        Since:
        2.0
    • Method Detail

      • isAppropriateListener

        public boolean isAppropriateListener​(FacesListener listener)

        Return true if the argument FacesListener is an instance of the appropriate listener class that this event supports. The default implementation returns true if the listener is a ComponentSystemEventListener or if super.isAppropriateListener() returns true.

        Overrides:
        isAppropriateListener in class SystemEvent
        Parameters:
        listener - FacesListener to evaluate
        Returns:
        the result as specified above
        Since:
        2.2
      • getComponent

        public UIComponent getComponent​()

        the source UIComponent that sent this event.

        Returns:
        the component for this event
        Since:
        2.0