public abstract class ProgressIndicatorDecorator extends Object implements ProgressIndicator
UNKNOWN
Constructor and Description |
---|
ProgressIndicatorDecorator(ProgressIndicator decoratee)
Create a progress indicator decorator
|
Modifier and Type | Method and Description |
---|---|
void |
advance(int workUnits)
Advances the progress by the given work units
|
void |
begin(String taskName,
int totalWork)
Start the progress tracking
|
void |
end()
Stop the progress tracking, signaling that the task is done
|
boolean |
isCanceled()
States if the execution was canceled
|
void |
setCurrentTask(String taskName)
Sets the current task name
|
public ProgressIndicatorDecorator(ProgressIndicator decoratee)
decoratee
- the decorateepublic void begin(String taskName, int totalWork)
ProgressIndicator
begin
in interface ProgressIndicator
taskName
- the main task nametotalWork
- the total work units for the progress indicator, if
unknown use ProgressIndicator.UNKNOWN
ProgressIndicator.begin(java.lang.String,
int)
public void setCurrentTask(String taskName)
ProgressIndicator
setCurrentTask
in interface ProgressIndicator
taskName
- the task nameProgressIndicator.setCurrentTask(java.lang.String)
public void advance(int workUnits)
ProgressIndicator
advance
in interface ProgressIndicator
workUnits
- the work unitsProgressIndicator.advance(int)
public boolean isCanceled()
ProgressIndicator
isCanceled
in interface ProgressIndicator
ProgressIndicator.isCanceled()
public void end()
ProgressIndicator
end
in interface ProgressIndicator
ProgressIndicator.end()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a