Package ej.event

Class NullEventQueueListener

  • All Implemented Interfaces:
    EventQueueListener

    public class NullEventQueueListener
    extends java.lang.Object
    implements EventQueueListener
    Implementation of event listener that does nothing.
    • Constructor Detail

      • NullEventQueueListener

        public NullEventQueueListener()
    • Method Detail

      • handleEvent

        public void handleEvent​(int type,
                                int data)
        Description copied from interface: EventQueueListener
        Handles an event.

        This method is called by the queue when an event with the right type is read.

        Specified by:
        handleEvent in interface EventQueueListener
        Parameters:
        type - the type of the event to handle.
        data - the data of the event to handle.
      • handleExtendedEvent

        public void handleExtendedEvent​(int type,
                                        EventDataReader eventDataReader)
        Description copied from interface: EventQueueListener
        Handles an extended event.

        This method is called by the queue when an extended event with the right type is read.

        Specified by:
        handleExtendedEvent in interface EventQueueListener
        Parameters:
        type - the type of the event to handle.
        eventDataReader - the EventDataReader of the event to handle.