ca.spaz.task
Interface Task

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
USDAImporter

public interface Task
extends java.lang.Runnable


Method Summary
 void abortTask()
          The task has been cancelled.
 boolean canAbortTask()
          Return true if the program can finish.
 java.lang.String getTaskDescription()
          A description of the current Task being performed
 int getTaskProgress()
          A number between 0 and 100 representing the % completion of the task.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

getTaskProgress

int getTaskProgress()
A number between 0 and 100 representing the % completion of the task.

Returns:
the percentage complete

abortTask

void abortTask()
The task has been cancelled. Attempt to stop.


canAbortTask

boolean canAbortTask()
Return true if the program can finish.

Returns:
true if the task can be aborted.

getTaskDescription

java.lang.String getTaskDescription()
A description of the current Task being performed

Returns:
the description of the current Task being performed


Copyright © 2005 Spaz. All Rights Reserved.