|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.core.io.impl.ProgressIndicatorDecorator
eu.esdihumboldt.hale.common.core.io.impl.SubtaskProgressIndicator
public class SubtaskProgressIndicator
Progress indicator with support for a subtask name.
Field Summary |
---|
Fields inherited from interface eu.esdihumboldt.hale.common.core.io.ProgressIndicator |
---|
UNKNOWN |
Constructor Summary | |
---|---|
SubtaskProgressIndicator(ProgressIndicator decoratee)
Create a progress indicator with support for a subtask name. |
Method Summary | |
---|---|
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 |
Methods inherited from class eu.esdihumboldt.hale.common.core.io.impl.ProgressIndicatorDecorator |
---|
advance, end, isCanceled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubtaskProgressIndicator(ProgressIndicator decoratee)
decoratee
- the progress indicator to decorateMethod Detail |
---|
public 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 nameprotected String getCombinedTaskName(String taskName, String subtaskName)
taskName
- the main task namesubtaskName
- the sub task name
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |