|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProgressIndicator
A generic interface for reporting progress by a tool. Can be implemented to
support reporting progress from both a single source
,
or for the aggregate of multiple sources
.
Nested Class Summary | |
---|---|
static class |
ProgressIndicator.MultiProgress
A ProgressIndicator that can report the total progress for
multiple sources. |
static class |
ProgressIndicator.SimpleProgress
A ProgressIndicator that can report the progress for a single
source. |
static class |
ProgressIndicator.UnknownEndProgress
Progress indicator where the end is unknown. |
Method Summary | |
---|---|
void |
done(long totalProgress)
Mark the process as done with the current source. |
void |
update(boolean incremental,
long value)
Update the current progress count for the current source. |
Method Detail |
---|
void update(boolean incremental, long value)
incremental
- whether this is an incremental update (
true
) or an absolute assignment (
false
) of the progress.value
- the count to update the progress with.void done(long totalProgress)
totalProgress
- the total progress reached by the source.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |