Methods Summary |
---|
protected void | addEvent(NativeEvent event)
synchronized (eventQueue) {
eventQueue.add(event);
shutdownWatchdog.setNativeQueueEmpty(false);
}
synchronized (eventMonitor) {
eventMonitor.notify();
}
|
public abstract void | awake()
|
public abstract void | dispatchEvent()Add NativeEvent to the queue
|
public final java.lang.Object | getEventMonitor()
return eventMonitor;
|
public abstract long | getJavaWindow()Gets AWT system window ID.
|
public NativeEvent | getNextEvent()
synchronized (eventQueue) {
if (eventQueue.isEmpty()) {
shutdownWatchdog.setNativeQueueEmpty(true);
return null;
}
return eventQueue.remove(0);
}
|
public boolean | isEmpty()Determines whether or not the native event queue is empty.
An queue is empty if it contains no messages waiting.
synchronized(eventQueue) {
return eventQueue.isEmpty();
}
|
public abstract void | performLater(org.apache.harmony.awt.wtk.NativeEventQueue$Task task)
|
public abstract void | performTask(org.apache.harmony.awt.wtk.NativeEventQueue$Task task)
|
public final void | setShutdownWatchdog(ShutdownWatchdog watchdog)
synchronized (eventQueue) {
shutdownWatchdog = watchdog;
}
|
public abstract boolean | waitEvent()Blocks current thread until native event queue is not empty
or awaken from other thread by awake().
Should be called only on tread which
will process native events.
|