public abstract class ProgressFunction extends AbstractFunction
editor
Modifier | Constructor and Description |
---|---|
protected |
ProgressFunction(GMLEditor editor)
Construct a ProgressFunction.
|
Modifier and Type | Method and Description |
---|---|
protected void |
bumpMaxProgress()
Increase the maximum progress level by one.
|
protected void |
bumpMaxProgress(int amount)
Increase the maximum progress level by some amount.
|
protected void |
bumpProgress()
Increase the progress level by one.
|
void |
execute()
Execute this function.
|
protected abstract void |
executeImpl()
Execute the function.
|
protected abstract java.lang.String |
getTitle()
Get the title for the progress dialog.
|
protected void |
setProgress(int amount)
Set the progress level.
|
protected void |
setProgressLimit(int max)
Set the progress maximum.
|
protected void |
setProgressString(java.lang.String s)
Set the progress string.
|
protected ProgressFunction(GMLEditor editor)
editor
- The editor instance.public void execute()
Function
protected abstract void executeImpl()
protected abstract java.lang.String getTitle()
protected void setProgress(int amount)
amount
- The new progress.protected void bumpProgress()
protected void bumpMaxProgress()
protected void bumpMaxProgress(int amount)
amount
- The amount to increase the maximum progress level.protected void setProgressLimit(int max)
max
- The new progress maximum.protected void setProgressString(java.lang.String s)
s
- The new progress string.