Interface EventHandler

  • All Known Implementing Classes:
    Desktop, Displayable

    public interface EventHandler
    An event handler is intended to receive and handle events.

    In the MVC pattern it is the controller.

    Since:
    2.0
    • Method Detail

      • handleEvent

        boolean handleEvent​(int event)
        Handles an event.
        Parameters:
        event - the event to handle.
        Returns:
        true if the event is consumed, false otherwise.
        See Also:
        Event