Class ComponentEvent<T extends Component>

    • Constructor Detail

      • ComponentEvent

        public ComponentEvent​(T source,
                              boolean fromClient)
        Creates a new event using the given source and indicator whether the event originated from the client side or the server side.
        Parameters:
        source - the source component
        fromClient - true if the event originated from the client side, false otherwise
    • Method Detail

      • isFromClient

        public boolean isFromClient()
        Checks if this event originated from the client side.
        Returns:
        true if the event originated from the client side, false otherwise
      • unregisterListener

        public void unregisterListener()
        Unregisters the event listener currently being invoked.

        This method can only be called from within an event listener. Calling it will remove the current event listener so no further events are passed to it.