Squiz Matrix
4.12.2
|
Public Member Functions | |
abstract Object | construct () |
void | finished () |
void | interrupt () |
Object | get () |
MatrixSwingWorker () | |
void | start () |
Protected Member Functions | |
synchronized Object | getValue () |
This is the 3rd version of SwingWorker (also known as SwingWorker 3), an abstract class that you subclass to perform GUI-related work in a dedicated thread. For instructions on using this class, see:
http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html
Note that the API changed slightly in the 3rd version: You must now invoke start() on the SwingWorker after creating it.
Definition at line 32 of file MatrixSwingWorker.java.
|
inline |
Start a thread that will call the construct
method and then exit.
Definition at line 116 of file MatrixSwingWorker.java.
|
pure virtual |
Compute the value to be returned by the get
method.
Implemented in AssetRefreshWorker.
|
inline |
Called on the event dispatching thread (not on the worker thread) after the construct
method has returned.
Definition at line 73 of file MatrixSwingWorker.java.
|
inline |
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.
construct
method Definition at line 95 of file MatrixSwingWorker.java.
|
inlineprotected |
Get the value produced by the worker thread, or null if it hasn't been constructed yet.
Definition at line 53 of file MatrixSwingWorker.java.
|
inline |
A new method that interrupts the worker thread. Call this method to force the worker to stop what it's doing.
Definition at line 80 of file MatrixSwingWorker.java.
|
inline |
Start the worker thread.
Definition at line 141 of file MatrixSwingWorker.java.