com.levigo.util.swing
Class SwingWorkerAdapter
java.lang.Object
com.levigo.util.swing.SwingWorkerAdapter
- All Implemented Interfaces:
- Runnable
public abstract class SwingWorkerAdapter
- extends Object
- implements Runnable
Abstract class to redirect a task to event dispatch queue.
- Author:
- Carolin Köhler
Method Summary |
protected abstract void |
performWork()
|
void |
run()
Calls performWork on EDT. |
void |
runNow()
Calls performWork on EDT, but stops the actual thread until
task is performed.. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwingWorkerAdapter
protected SwingWorkerAdapter()
- SwingWorkerAdapter
performWork
protected abstract void performWork()
run
public void run()
- Calls
performWork
on EDT.
- Specified by:
run
in interface Runnable
runNow
public void runNow()
throws InterruptedException,
InvocationTargetException
- Calls
performWork
on EDT, but stops the actual thread until
task is performed..
- Throws:
InterruptedException
InvocationTargetException