com.townleyenterprises.swing.event
Interface TaskListener


public interface TaskListener

This interface should be implemented by code that wishes to be notified of task events. Currently, there are only two notifications: task started, task complete and task aborted. The notification listeners should be notified in a different thread than the one the task is executing in so that Swing threading problems do not occur.

Since:
2.1
Version:
$Id: TaskListener.java,v 1.3 2004/07/28 10:34:00 atownley Exp $
Author:
Andrew S. Townley

Method Summary
 void taskAborted(TaskEvent event)
          This method is called when the task has been aborted.
 void taskCompleted(TaskEvent event)
          This method is called when the task has completed normally (even if it has encountered an error).
 void taskStarted(TaskEvent event)
          This method is called when the task has been started.
 

Method Detail

taskStarted

public void taskStarted(TaskEvent event)
This method is called when the task has been started.

Parameters:
event - the TaskEvent

taskAborted

public void taskAborted(TaskEvent event)
This method is called when the task has been aborted.

Parameters:
event - the TaskEvent

taskCompleted

public void taskCompleted(TaskEvent event)
This method is called when the task has completed normally (even if it has encountered an error).

Parameters:
event - the TaskEvent


Copyright © 2002-2004, Andrew S. Townley and Townley Enterprises. All Rights Reserved.
This project is hosted on http://te-code.sourceforge.net.