| java.lang.Object ti.chimera.Service ti.chimera.service.SwingWorker
SwingWorker | abstract public class SwingWorker extends ti.chimera.Service (Code) | | 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.
author: Rob Clark version: 0.1 |
Constructor Summary | |
public | SwingWorker() Class Constructor. |
SwingWorker | public SwingWorker()(Code) | | Class Constructor.
|
run | abstract public void run(Runnable r, String str) throws Throwable(Code) | | Call the
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.
Parameters: r - the runnable to run Parameters: str - the progress message to display to user throws: Throwable - if an exception was thrown by the runnable |
|
|