FileDocCategorySizeDatePackage
NativeEventThread.javaAPI DocAndroid 1.5 API2018Wed May 06 22:41:54 BST 2009org.apache.harmony.awt.wtk

NativeEventThread

public class NativeEventThread extends Thread
NativeEventThread

Fields Summary
NativeEventQueue
nativeQueue
Init
init
private WTK
wtk
Constructors Summary
public NativeEventThread()

        super("AWT-NativeEventThread"); //$NON-NLS-1$
        setDaemon(true);
    
Methods Summary
public WTKgetWTK()

        return wtk;
    
public voidrun()

        synchronized (this) {
            try {
                wtk = init.init();
                nativeQueue = wtk.getNativeEventQueue();
            } finally {
                notifyAll();
            }
        }
        
        runModalLoop();
    
voidrunModalLoop()

        while (nativeQueue.waitEvent()) {
            nativeQueue.dispatchEvent();
        }
    
public voidstart(org.apache.harmony.awt.wtk.NativeEventThread$Init init)

        synchronized (this) {
            this.init = init;
            super.start();
            try {
                wait();
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }