|
class | ThreadVar |
| Class to maintain reference to current worker thread under separate synchronization control. More...
|
|
|
abstract Object | construct () |
| Compute the value to be returned by the get method.
|
|
void | finished () |
| Called on the event dispatching thread (not on the worker thread) after the construct method has returned.
|
|
void | interrupt () |
| A new method that interrupts the worker thread.
|
|
Object | get () |
| Return the value created by the construct method.
|
|
| SwingWorker () |
| Start a thread that will call the construct method and then exit.
|
|
void | start () |
| Start the worker thread.
|
|
|
synchronized Object | getValue () |
| Get the value produced by the worker thread, or null if it hasn't been constructed yet.
|
|
|
ThreadVar | threadVar |
| 12-8-2004 (LEM) - made this protected so I could have access to it in the children
|
|
|
synchronized void | setValue (Object x) |
| Set the value produced by worker thread.
|
|
sortie.parfile.SwingWorker.SwingWorker |
( |
| ) |
|
Start a thread that will call the construct method and then exit.
abstract Object sortie.parfile.SwingWorker.construct |
( |
| ) |
|
|
pure virtual |
Compute the value to be returned by the get method.
- Returns
- value to be returned by get method
void sortie.parfile.SwingWorker.finished |
( |
| ) |
|
Called on the event dispatching thread (not on the worker thread) after the construct method has returned.
Object sortie.parfile.SwingWorker.get |
( |
| ) |
|
Return the value created by the construct method.
Returns null if either the constructing thread or the current thread was interrupted before a value was produced.
- Returns
- the value created by the construct method
synchronized Object sortie.parfile.SwingWorker.getValue |
( |
| ) |
|
|
protected |
Get the value produced by the worker thread, or null if it hasn't been constructed yet.
- Returns
- Object Value produced by worker thread
void sortie.parfile.SwingWorker.interrupt |
( |
| ) |
|
A new method that interrupts the worker thread.
Call this method to force the worker to stop what it's doing.
synchronized void sortie.parfile.SwingWorker.setValue |
( |
Object |
x | ) |
|
|
private |
Set the value produced by worker thread.
- Parameters
-
x | Value produced by worker thread |
void sortie.parfile.SwingWorker.start |
( |
| ) |
|
ThreadVar sortie.parfile.SwingWorker.threadVar |
|
protected |
12-8-2004 (LEM) - made this protected so I could have access to it in the children
Object sortie.parfile.SwingWorker.value |
|
private |
The documentation for this class was generated from the following file: