public class CurrentProgressStatus
extends java.util.Observable
Modifier and Type | Method and Description |
---|---|
void |
clearWork()
Reset the progressbar
|
double |
getCurrentIncrement()
Get the current increment value
|
static CurrentProgressStatus |
getInstance()
Get the current instance of the progress bar, or creates one
|
java.lang.String |
getMessage()
Get the message printed on the progressbar
|
double |
getProgress()
Get current progress
|
void |
increment()
Increment the progressbar by increment value
|
boolean |
isIndeterminate()
Returns if the progressbar is indeterminate
|
boolean |
isWorking()
Returns if the progressbar is already working
|
void |
setIncrement(double inc)
Set the increment value
|
void |
setIndeterminate()
Set the progressbar to be indeterminate
|
void |
setMessage(java.lang.String msg)
Set the message to display on the progressbar
|
void |
setProgress(double progress)
Set the progress to a given value
|
public static CurrentProgressStatus getInstance()
public double getProgress()
public void setIndeterminate()
public boolean isIndeterminate()
public void setProgress(double progress)
progress
- value of the progress to setpublic double getCurrentIncrement()
public void setIncrement(double inc)
inc
- increment valuepublic void increment()
public java.lang.String getMessage()
public void setMessage(java.lang.String msg)
msg
-public boolean isWorking()
public void clearWork()