ini.trakem2.utils
Class Dispatcher

java.lang.Object
  extended by ini.trakem2.utils.Dispatcher

public class Dispatcher
extends java.lang.Object


Nested Class Summary
static class Dispatcher.DispatcherThreadFactory
           
 
Constructor Summary
Dispatcher()
           
Dispatcher(java.lang.String tag)
           
 
Method Summary
 void exec(java.lang.Runnable run)
          Submits the task for execution and returns immediately.
 void exec(java.lang.Runnable run, boolean swing)
           
 void execSwing(java.lang.Runnable run)
           
 boolean isQuit()
           
 void quit()
           
 void quitWhenDone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dispatcher

public Dispatcher(java.lang.String tag)

Dispatcher

public Dispatcher()
Method Detail

quit

public void quit()

isQuit

public boolean isQuit()

quitWhenDone

public void quitWhenDone()

exec

public void exec(java.lang.Runnable run)
Submits the task for execution and returns immediately.


execSwing

public void execSwing(java.lang.Runnable run)

exec

public void exec(java.lang.Runnable run,
                 boolean swing)