org.apache.pivot.wtk
Class TaskAdapter<T>
java.lang.Object
org.apache.pivot.wtk.TaskAdapter<T>
- All Implemented Interfaces:
- org.apache.pivot.util.concurrent.TaskListener<T>
public class TaskAdapter<T>
- extends Object
- implements org.apache.pivot.util.concurrent.TaskListener<T>
Class that forwards task events to the UI thread.
|
Constructor Summary |
TaskAdapter(org.apache.pivot.util.concurrent.TaskListener<T> taskListener)
Creates a new TaskAdapter that wraps the specified task
listener. |
|
Method Summary |
void |
executeFailed(org.apache.pivot.util.concurrent.Task<T> task)
|
void |
taskExecuted(org.apache.pivot.util.concurrent.Task<T> task)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskAdapter
public TaskAdapter(org.apache.pivot.util.concurrent.TaskListener<T> taskListener)
- Creates a new TaskAdapter that wraps the specified task
listener.
- Parameters:
taskListener - The task listener that will be notified on the UI thread
taskExecuted
public void taskExecuted(org.apache.pivot.util.concurrent.Task<T> task)
- Specified by:
taskExecuted in interface org.apache.pivot.util.concurrent.TaskListener<T>
executeFailed
public void executeFailed(org.apache.pivot.util.concurrent.Task<T> task)
- Specified by:
executeFailed in interface org.apache.pivot.util.concurrent.TaskListener<T>