org.virion.jam.util
Class SimpleLongTask

java.lang.Object
  extended by org.virion.jam.util.LongTask
      extended by org.virion.jam.util.SimpleLongTask

public abstract class SimpleLongTask
extends LongTask


Field Summary
 int current
           
 String description
           
 int length
           
 String message
           
 boolean pleaseStop
           
 
Constructor Summary
SimpleLongTask()
           
 
Method Summary
 int getCurrent()
          Called to find out how much has been done.
 String getDescription()
          Called to get the description of this task.
 int getLengthOfTask()
          Called to find out how much work needs to be done.
 String getMessage()
          Called to get the current message of the task.
 void stop()
          Called to stop task.
 
Methods inherited from class org.virion.jam.util.LongTask
done, doWork, getAnswer, go
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

current

public int current

length

public int length

pleaseStop

public boolean pleaseStop

message

public String message

description

public String description
Constructor Detail

SimpleLongTask

public SimpleLongTask()
Method Detail

getLengthOfTask

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

Specified by:
getLengthOfTask in class LongTask

getCurrent

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

Specified by:
getCurrent in class LongTask

stop

public void stop()
Called to stop task.

Overrides:
stop in class LongTask

getMessage

public String getMessage()
Description copied from class: LongTask
Called to get the current message of the task.

Specified by:
getMessage in class LongTask

getDescription

public String getDescription()
Description copied from class: LongTask
Called to get the description of this task.

Overrides:
getDescription in class LongTask