com.townleyenterprises.swing.event
Class TaskEvent

java.lang.Object
  extended bycom.townleyenterprises.swing.event.TaskEvent

public class TaskEvent
extends java.lang.Object

This is a simple class that is used to propogate task information. It is essentially a snapshot of the "interesting" bits of the task.

Since:
2.1
Version:
$Id: TaskEvent.java,v 1.3 2004/07/28 10:33:59 atownley Exp $
Author:
Andrew S. Townley

Constructor Summary
TaskEvent(MonitoredTask source, java.lang.String status, int progress)
          The constructor takes the task information.
 
Method Summary
 int getProgress()
           
 MonitoredTask getSource()
           
 java.lang.String getStatus()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskEvent

public TaskEvent(MonitoredTask source,
                 java.lang.String status,
                 int progress)
The constructor takes the task information.

Parameters:
source - the task generating the event
status - the status text when the event happened
progress - the progress when the event happened
Method Detail

getSource

public MonitoredTask getSource()

getStatus

public java.lang.String getStatus()

getProgress

public int getProgress()


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