|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lc.util.SwingWorker
3rd version of the SwingWorker
, an abstract class
to override for GUI-related operation, in a dedicated thread.
This class has been imported from Sun's site.
For more information, have a look at :
http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html
Constructor Summary | |
SwingWorker()
Creates a thread which will call the construct method before ending. |
Method Summary | |
abstract java.lang.Object |
construct()
Calculates the value to be returned by the get method. |
void |
finished()
Called by the dispath thread, after the construct completed. |
java.lang.Object |
get()
Returns the value created by the construct method. |
protected java.lang.Object |
getValue()
Gets the value produced by the worker thread, or null if not produced yet. |
void |
interrupt()
Forces the worker thread to interrupt. |
void |
start()
Starts the worker thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SwingWorker()
Method Detail |
protected java.lang.Object getValue()
public abstract java.lang.Object construct()
public void finished()
public void interrupt()
public java.lang.Object get()
public void start()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |