edu.northwestern.at.utils.swing
Interface ProgressMonitorTask


public interface ProgressMonitorTask

Interface for a task which is monitored by a ProgressMonitorDialog.


Method Summary
 int getCurrent()
          Get amount of task currently done.
 int getLength()
          Get task length.
 java.lang.String getMessage()
          Get most recent task message.
 boolean isFinished()
          Check if task is finished.
 

Method Detail

getLength

int getLength()
Get task length.

Returns:
Task length in units. If -1, task length is currently unknown.

getCurrent

int getCurrent()
Get amount of task currently done.

Returns:
Amount of task currently done in units. If -1, amount is currently unknown.

isFinished

boolean isFinished()
Check if task is finished.

Returns:
true if task finished.

getMessage

java.lang.String getMessage()
Get most recent task message.

Returns:
Most recent task message. Null means no message.