public abstract class SwingWorker
extends java.lang.Object
Constructor and Description |
---|
SwingWorker()
Start a thread that will call the
construct method
and then exit. |
Modifier and Type | Method and Description |
---|---|
protected void |
catchException(java.lang.Throwable exception)
Called on the event dispatching thread (not on the worker thread)
if an exception has occurred during the
construct method. |
protected abstract java.lang.Object |
construct()
Computes the value to be returned by
get() . |
protected void |
finished()
Called on the event dispatching thread (not on the worker thread)
after the
construct method has returned. |
java.lang.Object |
get()
Return the value created by the
construct method. |
void |
interrupt()
A new method that interrupts the worker thread.
|
void |
start()
Start the worker thread.
|
public SwingWorker()
construct
method
and then exit.protected void catchException(java.lang.Throwable exception)
construct
method.exception
- the exception that has occurredprotected abstract java.lang.Object construct() throws java.lang.Exception
get()
.java.lang.Exception
protected void finished()
construct
method has returned.public java.lang.Object get()
construct
method.
Returns null if either the constructing thread or the current
thread was interrupted before a value was produced.construct
methodpublic void interrupt()
public void start()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.