|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pivot.wtk.TaskAdapter<T>
public class TaskAdapter<T>
Class that forwards task events to the UI thread.
| Constructor Summary | |
|---|---|
TaskAdapter(TaskListener<T> taskListener)
Creates a new TaskAdapter that wraps the specified task listener. |
|
| Method Summary | |
|---|---|
void |
executeFailed(Task<T> task)
Called when task execution has failed. |
void |
taskExecuted(Task<T> task)
Called when the task has completed successfully. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskAdapter(TaskListener<T> taskListener)
taskListener - The task listener that will be notified on the UI thread| Method Detail |
|---|
public void taskExecuted(Task<T> task)
TaskListener
taskExecuted in interface TaskListener<T>task - The source of the task event.public void executeFailed(Task<T> task)
TaskListener
executeFailed in interface TaskListener<T>task - The source of the task event.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||