public interface EventQueueListener
EventQueue.
An event queue listener can be registered to an event queue using
EventQueue.registerListener(EventQueueListener, int).
Before registering your listener, you must get a valid unique type using the EventQueue.getNewType() method
from the EventQueue class. Then you can register your listener using
EventQueue.registerListener(EventQueueListener, int).
| Modifier and Type | Method and Description |
|---|---|
void |
handleEvent(int type,
int data)
Handles an event.
|
void |
handleExtendedEvent(int type,
EventDataReader eventDataReader)
Handles an extended event.
|
void handleEvent(int type,
int data)
This method is called by the queue when an event with the right type is read.
type - the type of the event to handle.data - the data of the event to handle.void handleExtendedEvent(int type,
EventDataReader eventDataReader)
This method is called by the queue when an extended event with the right type is read.
type - the type of the event to handle.eventDataReader - the EventDataReader of the event to handle.