public class TaskManagerDialog extends TaskAdapter
Modifier and Type | Method and Description |
---|---|
static TaskManagerDialog |
createDialog(java.awt.Component parent,
TaskManagerDialogConfiguration config) |
void |
start()
To be called from the EDT.
|
void |
taskCancelled(TaskEvent e)
Called when a task is cancelled successfully.
|
void |
taskComplete(TaskEvent e)
Called when a Task reaches the Completed state.
|
void |
taskException(TaskEvent e,
java.lang.Exception ex)
Called when an exception is encountered in the process.
|
void |
taskProgress(ProgressEvent e)
Called everytime that Task provides a progress update
|
void |
taskStarted(TaskEvent e)
Called when a Task is started or restarted after a Pause
|
taskPaused, taskUpdate
public static TaskManagerDialog createDialog(java.awt.Component parent, TaskManagerDialogConfiguration config)
public void start()
public void taskException(TaskEvent e, java.lang.Exception ex)
TaskListener
taskException
in interface TaskListener
taskException
in class TaskAdapter
e
- TaskEvent a reference of the TaskEvent for this callbackex
- Exception the Exception which caused the callback. The
task is terminated after an exception.public void taskProgress(ProgressEvent e)
TaskListener
taskProgress
in interface TaskListener
taskProgress
in class TaskAdapter
e
- TaskProgress a reference to a TaskProgress instance which
contains details of the progress of this task as generated by the
implementor.public void taskCancelled(TaskEvent e)
TaskListener
taskCancelled
in interface TaskListener
taskCancelled
in class TaskAdapter
e
- TaskEvent the TaskEvent will contain detailspublic void taskComplete(TaskEvent e)
TaskListener
taskComplete
in interface TaskListener
taskComplete
in class TaskAdapter
e
- TaskEvent a reference of the TaskEvent for this callbackpublic void taskStarted(TaskEvent e)
TaskListener
taskStarted
in interface TaskListener
taskStarted
in class TaskAdapter
e
- TaskEvent a reference of the TaskEvent for this callback