uk.ac.essex.common.gui.task
Class LongTaskTest

java.lang.Object
  extended by uk.ac.essex.common.gui.task.LongTaskTest
All Implemented Interfaces:
LongTask

public class LongTaskTest
extends java.lang.Object
implements LongTask


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


Constructor Summary
LongTaskTest()
           
 
Method Summary
 int getCurrent()
          Called from ProgressBarDemo to find out how much has been done.
 int getLengthOfTask()
          Called from ProgressBarDemo 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 from ProgressBarDemo to start the task.
 boolean isDone()
          Called from ProgressBarDemo to find out if the task has completed.
 void stop()
          Stop the task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongTaskTest

public LongTaskTest()
Method Detail

go

public void go()
Called from ProgressBarDemo to start the task.

Specified by:
go in interface LongTask

getLengthOfTask

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

Specified by:
getLengthOfTask in interface LongTask

getCurrent

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

Specified by:
getCurrent in interface LongTask

stop

public void stop()
Description copied from interface: LongTask
Stop the task

Specified by:
stop in interface LongTask

isDone

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

Specified by:
isDone in interface LongTask

getMessage

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

Specified by:
getMessage in interface LongTask