javax.rad.ui
Class InvokeLaterThread

java.lang.Object
  extended by java.lang.Thread
      extended by javax.rad.ui.InvokeLaterThread
All Implemented Interfaces:
Runnable

public class InvokeLaterThread
extends Thread

InvokeLaterThread supports invokeLater notification for GUI Controls, when the thread ends. This is necessary to guarantee that invokeLater GUI actions caused in this Thread occurs after finishing this thread. InvokeLater action can also be triggered immediately by executeInvokeLater. This call guarantees thread save execution of the invokeLater actions in this thread. All InvokeLater actions are executed in the technology dependent GUI Thread.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
InvokeLaterThread(IFactory pFactory, Runnable pRunnable)
          Constructs a new InvokeLaterThread.
 
Method Summary
 void executeInvokeLater()
          Executes thread save all invokeLater actions immediate.
 void invokeLater(Runnable pRunnable)
          Executes the given Runnable after this Thread is finished.
 void run()
          
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvokeLaterThread

public InvokeLaterThread(IFactory pFactory,
                         Runnable pRunnable)
Constructs a new InvokeLaterThread.

Parameters:
pFactory - the Factory to execute invokeLater actions.
pRunnable - the Runnable of this thread.
Method Detail

run

public void run()

Specified by:
run in interface Runnable
Overrides:
run in class Thread

invokeLater

public void invokeLater(Runnable pRunnable)
Executes the given Runnable after this Thread is finished.

Parameters:
pRunnable - the Runnable to be executed after the Thread is finished.

executeInvokeLater

public void executeInvokeLater()
Executes thread save all invokeLater actions immediate.



Copyright © 2009 SIB Visions GmbH. All Rights Reserved.