|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectti.chimera.Service
ti.chimera.service.SwingWorker
The "swing worker" is service that provides a call-gate which makes it possible to perform long running processes from the AWT event thread without blocking the UI, or from a WorkerThread without blocking it.
Constructor Summary | |
SwingWorker()
Class Constructor. |
Method Summary | |
abstract void |
run(java.lang.Runnable r,
java.lang.String str)
Call the Runnable.run() method. |
Methods inherited from class ti.chimera.Service |
getName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SwingWorker()
Method Detail |
public abstract void run(java.lang.Runnable r, java.lang.String str) throws java.lang.Throwable
Runnable.run()
method. This method does not return until
until the runnable completes, but may call the runnable from a different
thread context if needed. Because of this, care must be taken about the
use of synchronization, specifically a monitor acquired before calling
this method may not be held by the thread invoking the runnable, which
could lend to race conditions or deadlock (if the invoking thread tries
to acquire the monitor already held by the thread that called this.
r
- the runnable to runstr
- the progress message to display to user
java.lang.Throwable
- if an exception was thrown by the runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |