public interface TaskListenerSupport
Modifier and Type | Method and Description |
---|---|
void |
addListener(String taskId,
TaskListener listener)
Add a
TaskListener that will only receive events for tasks with
the specified id. |
void |
addListener(TaskListener listener)
Add a
TaskListener that receives events for all tasks executed. |
void |
firePhaseChanged(ChangeEvent<String> e) |
void |
fireProgressChanged(ChangeEvent<Integer> e) |
void |
fireStateChanged(ChangeEvent<Task.State> e) |
void |
removeListener(String taskId,
TaskListener listener) |
void |
removeListener(TaskListener listener) |
void addListener(TaskListener listener)
TaskListener
that receives events for all tasks executed.listener
- void removeListener(TaskListener listener)
void addListener(String taskId, TaskListener listener)
TaskListener
that will only receive events for tasks with
the specified id.taskId
- listener
- void removeListener(String taskId, TaskListener listener)
void fireStateChanged(ChangeEvent<Task.State> e)
void fireProgressChanged(ChangeEvent<Integer> e)
void firePhaseChanged(ChangeEvent<String> e)