|
org.netbeans.api.progress/1 1.5.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.api.progress.aggregate.AggregateProgressHandle
public final class AggregateProgressHandle
a progress handle that allows aggregation of progress indication from multiple
independant sources. All of the progress contributors are considered equal and are given
equal share of the global progress.
The task progress contributors can be added dynamically and
the progress bar adjusts accordingly, never stepping back though.
For a more simple version of progress indication, see ProgressHandle
Method Summary | |
---|---|
void |
addContributor(ProgressContributor contributor)
add a contributor to the global, aggregated progress. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void start()
public void start(long estimate)
estimate
- estimated time to process the task in secondspublic void finish()
public 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)
|
org.netbeans.api.progress/1 1.5.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |