Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
MatrixSwingWorker Class Referenceabstract
Inheritance diagram for MatrixSwingWorker:
AssetRefreshWorker

Public Member Functions

abstract Object construct ()
 
void finished ()
 
void interrupt ()
 
Object get ()
 
 MatrixSwingWorker ()
 
void start ()
 

Protected Member Functions

synchronized Object getValue ()
 

Detailed Description

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.

Constructor & Destructor Documentation

MatrixSwingWorker ( )
inline

Start a thread that will call the construct method and then exit.

Definition at line 116 of file MatrixSwingWorker.java.

Member Function Documentation

abstract Object construct ( )
pure virtual

Compute the value to be returned by the get method.

Implemented in AssetRefreshWorker.

void finished ( )
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.

Object get ( )
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.

Returns
the value created by the construct method

Definition at line 95 of file MatrixSwingWorker.java.

synchronized Object getValue ( )
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.

void interrupt ( )
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.

void start ( )
inline

Start the worker thread.

Definition at line 141 of file MatrixSwingWorker.java.


The documentation for this class was generated from the following file: