public final class AggregateProgressHandle extends Object implements AutoCloseable
ProgressHandle
Modifier and Type | Method and Description |
---|---|
void |
addContributor(ProgressContributor contributor)
add a contributor to the global, aggregated progress.
|
void |
close()
|
void |
finish()
finish the task, remove the task's component from the progress bar UI, any additional incoming events from the
contributors will be ignored.
|
void |
setDisplayName(String newDisplayName)
change the display name of the progress task.
|
void |
setInitialDelay(int millis)
allows to set a custom initial delay for the progress task to appear in the
status bar.
|
void |
setMonitor(ProgressMonitor monitor)
allow to watch the incoming events from the individual progress contributors.
|
void |
start()
start the progress indication for the task, shows the progress in the UI, events from the contributors are
expected after this call.
|
void |
start(long estimate)
start the progress indication for the task with an initial time estimate, shows the progress in the UI, events from the contributors are
expected after this call.
|
void |
suspend(String message)
Currently running task can switch to silent suspend mode where the progress bar
stops moving, hides completely or partially.
|
public void start()
public void start(long estimate)
estimate
- estimated time to process the task in secondspublic void close()
close
in interface AutoCloseable
public void finish()
public void suspend(String message)
message
- a message to display in the silent modepublic void setInitialDelay(int millis)
Progress bars that are placed in custom dialogs do always appear right away without a delay.
millis
- amount of miliseconds that shall pass before the progress appears in status bar.public void addContributor(ProgressContributor contributor)
public void setMonitor(ProgressMonitor monitor)
public void setDisplayName(String newDisplayName)