Methods Summary |
---|
boolean | done()Called from ProgressBarDemo to find out if the task has completed.
if (current >= lengthOfTask)
return true;
else
return false;
|
int | getCurrent()Called from ProgressBarDemo to find out how much has been done.
return current;
|
int | getLengthOfTask()Called from ProgressBarDemo to find out how much work needs
to be done.
return lengthOfTask;
|
java.lang.String | getMessage()
return statMessage;
|
void | go()Called from ProgressBarDemo to start the task.
current = 0;
final SwingWorker worker = new SwingWorker() {
public Object construct() {
return new ActualTask();
}
};
worker.start();
|
void | stop()
current = lengthOfTask;
|