org.jurvis.swing.app
Class JvAppWorker

java.lang.Object
  extended by org.jurvis.swing.app.JvAppWorker

public abstract class JvAppWorker
extends Object

A wrapping of JvSwingWorker that automatically sets the enclosing application to busy.


Constructor Summary
JvAppWorker(Component appChild)
          Construct a new JvAppWorker.
 
Method Summary
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.
 Object get()
          Return the value created by the construct method.
 void start()
          Start the worker thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JvAppWorker

public JvAppWorker(Component appChild)
Construct a new JvAppWorker.

Parameters:
appChild - a child component of some application
Method Detail

get

public Object 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

construct

public abstract Object construct()
Compute the value to be returned by the get method.


finished

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


start

public void start()
Start the worker thread.



Copyright © 1999-2004 Neil W. Weber. All Rights Reserved.