Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.ide.task.event
Interface TaskListener

All Known Implementing Classes:
DialogFeedbackTaskListener, TaskAdapter, TaskManagerDialog

public interface TaskListener

Interface to be implemented by any class that wants to register itself as a TaskListener


Method Summary
 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 taskPaused(TaskEvent e)
          Called when a Task is paused.
 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
 void taskUpdate(UpdateEvent e)
          Called everytime the task has some update to provide (other than state change or progress).
 

Method Detail

taskComplete

void taskComplete(TaskEvent e)
Called when a Task reaches the Completed state.

Parameters:
e - TaskEvent a reference of the TaskEvent for this callback

taskException

void taskException(TaskEvent e,
                   java.lang.Exception ex)
Called when an exception is encountered in the process. If it is not a checked exception, then it will be wrapped in a TaskException.

Parameters:
e - TaskEvent a reference of the TaskEvent for this callback
ex - Exception the Exception which caused the callback. The task is terminated after an exception.

taskPaused

void taskPaused(TaskEvent e)
Called when a Task is paused.

Parameters:
e - TaskEvent a reference of the TaskEvent for this callback

taskStarted

void taskStarted(TaskEvent e)
Called when a Task is started or restarted after a Pause

Parameters:
e - TaskEvent a reference of the TaskEvent for this callback

taskProgress

void taskProgress(ProgressEvent e)
Called everytime that Task provides a progress update

Parameters:
e - TaskProgress a reference to a TaskProgress instance which contains details of the progress of this task as generated by the implementor.

taskUpdate

void taskUpdate(UpdateEvent e)
Called everytime the task has some update to provide (other than state change or progress). Lock acquisions may go into this category.

Parameters:
e - TaskUpdate the TaskUpdate will contain details

taskCancelled

void taskCancelled(TaskEvent e)
Called when a task is cancelled successfully.

Parameters:
e - TaskEvent the TaskEvent will contain details

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.