ListenerTestEventQueuepublic class ListenerTestEventQueue extends EventQueue Test event queue. This queue's sendNativeEventToIsolate and post methods
just call the registered event listener directly.
This class is used to test the producer, listener, consumer trio of classes
for an event group. |
Methods Summary |
---|
void | dispatch(Event event)Dispatch the event.
DispatchData dispatchData = dispatchTable[event.type - 1];
dispatchData.listener.process(event);
| public void | post(Event event)Post an event to the queue. This version just dispatches
the event directly.
dispatch(event);
| public void | sendNativeEventToIsolate(NativeEvent event, int isolateId)Send a native event to a specific Isolate. This version just dispatches
the event directly.
dispatch(event);
|
|