SORTIE Java Interface  1
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
sortie.parfile.SwingWorker Class Referenceabstract

Classes

class  ThreadVar
 Class to maintain reference to current worker thread under separate synchronization control. More...
 

Public Member Functions

abstract Object construct ()
 Compute the value to be returned by the get method. More...
 
void finished ()
 Called on the event dispatching thread (not on the worker thread) after the construct method has returned. More...
 
void interrupt ()
 A new method that interrupts the worker thread. More...
 
Object get ()
 Return the value created by the construct method. More...
 
 SwingWorker ()
 Start a thread that will call the construct method and then exit. More...
 
void start ()
 Start the worker thread. More...
 

Protected Member Functions

synchronized Object getValue ()
 Get the value produced by the worker thread, or null if it hasn't been constructed yet. More...
 

Protected Attributes

ThreadVar threadVar
 12-8-2004 (LEM) - made this protected so I could have access to it in the children More...
 

Private Member Functions

synchronized void setValue (Object x)
 Set the value produced by worker thread. More...
 

Private Attributes

Object value
 see getValue(), setValue() More...
 

Detailed Description

Constructor & Destructor Documentation

◆ SwingWorker()

sortie.parfile.SwingWorker.SwingWorker ( )

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

Member Function Documentation

◆ construct()

abstract Object sortie.parfile.SwingWorker.construct ( )
abstract

Compute the value to be returned by the get method.

Returns
value to be returned by get method

◆ finished()

void sortie.parfile.SwingWorker.finished ( )

Called on the event dispatching thread (not on the worker thread) after the construct method has returned.

◆ get()

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

◆ getValue()

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

◆ interrupt()

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.

◆ setValue()

synchronized void sortie.parfile.SwingWorker.setValue ( Object  x)
private

Set the value produced by worker thread.

Parameters
xValue produced by worker thread

◆ start()

void sortie.parfile.SwingWorker.start ( )

Start the worker thread.

Member Data Documentation

◆ threadVar

ThreadVar sortie.parfile.SwingWorker.threadVar
protected

12-8-2004 (LEM) - made this protected so I could have access to it in the children

◆ value

Object sortie.parfile.SwingWorker.value
private

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