uk.ac.essex.common.gui.task
Interface LongTask

All Known Implementing Classes:
LongTaskTest

public interface LongTask

A LongTask is some GUI related function such as opening a file, this is used by the LongTaskRunnerDialogImpl to display a progress bar and status message that is common amongst nearly every GUI.
Created Date: 25-Jan-2005

You should have received a copy of Lesser GNU public license with this code. If not please visit this site


Method Summary
 int getCurrent()
          Called to find out how much has been done.
 int getLengthOfTask()
          Called to find out how much work needs to be done.
 java.lang.String getMessage()
          Returns the most recent status message, or null if there is no current status message.
 void go()
          Called to start the task.
 boolean isDone()
          Called to find out if the task has completed.
 void stop()
          Stop the task
 

Method Detail

go

void go()
Called to start the task.


getLengthOfTask

int getLengthOfTask()
Called to find out how much work needs to be done.


getCurrent

int getCurrent()
Called to find out how much has been done.


stop

void stop()
Stop the task


isDone

boolean isDone()
Called to find out if the task has completed.


getMessage

java.lang.String getMessage()
Returns the most recent status message, or null if there is no current status message.