Package ej.event
Interface EventQueueListener
-
- All Known Implementing Classes:
NullEventQueueListener
public interface EventQueueListenerEventQueueListener is an interface to be implemented by parties interested to receive events of a specific type from anEventQueue.An event queue listener can be registered to an event queue using
EventQueue.registerListener(EventQueueListener).When you register your listener, the
EventQueue.registerListener(EventQueueListener)method returns the unique type identifier associated with that listener. This type can then be used to send events to the corresponding listener.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleEvent(int type, int data)Handles an event.voidhandleExtendedEvent(int type, EventDataReader eventDataReader)Handles an extended event.
-
-
-
Method Detail
-
handleEvent
void handleEvent(int type, int data)Handles an event.This method is called by the queue when an event with the right type is read.
- Parameters:
type- the type of the event to handle.data- the data of the event to handle.
-
handleExtendedEvent
void handleExtendedEvent(int type, EventDataReader eventDataReader)Handles an extended event.This method is called by the queue when an extended event with the right type is read.
- Parameters:
type- the type of the event to handle.eventDataReader- the EventDataReader of the event to handle.
-
-