public class SubtaskProgressIndicator extends ProgressIndicatorDecorator
UNKNOWN
Constructor and Description |
---|
SubtaskProgressIndicator(ProgressIndicator decoratee)
Create a progress indicator with support for a subtask name.
|
Modifier and Type | Method and Description |
---|---|
void |
begin(String taskName,
int totalWork)
Start the progress tracking
|
protected String |
getCombinedTaskName(String taskName,
String subtaskName)
Get the combined task name for a sub task
|
void |
setCurrentTask(String taskName)
Sets the current task name
|
void |
subTask(String subtaskName)
Start a sub task
|
advance, end, isCanceled
public SubtaskProgressIndicator(ProgressIndicator decoratee)
decoratee
- the progress indicator to decoratepublic void begin(String taskName, int totalWork)
ProgressIndicator
begin
in interface ProgressIndicator
begin
in class ProgressIndicatorDecorator
taskName
- the main task nametotalWork
- the total work units for the progress indicator, if
unknown use ProgressIndicator.UNKNOWN
ProgressIndicatorDecorator.begin(String, int)
public void setCurrentTask(String taskName)
ProgressIndicator
setCurrentTask
in interface ProgressIndicator
setCurrentTask
in class ProgressIndicatorDecorator
taskName
- the task nameProgressIndicatorDecorator.setCurrentTask(String)
public void subTask(String subtaskName)
subtaskName
- the sub task nameBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a