org.uncommons.swing
Class SwingBackgroundTask<V>
- java.lang.Object
-
- org.uncommons.swing.SwingBackgroundTask<V>
-
- Type Parameters:
V- Type of result generated by the task.
public abstract class SwingBackgroundTask<V> extends java.lang.ObjectA task that is executed on a background thread and then updates a Swing GUI. A task may only be executed once.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidexecute()Asynchronous call that begins execution of the task and returns immediately.voidwaitForCompletion()Waits for the execution of this task to complete.
-
-
-
Method Detail
-
execute
public void execute()
Asynchronous call that begins execution of the task and returns immediately.
-
waitForCompletion
public void waitForCompletion() throws java.lang.InterruptedExceptionWaits for the execution of this task to complete. If theexecute()method has not yet been invoked, this method will block indefinitely.- Throws:
java.lang.InterruptedException- If the thread executing the task is interrupted.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG