|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProgressMeter
ProgressMeter represents a work progress meter with implementation-specific output.
Method Summary | |
---|---|
void |
reset()
Reset the progress meter. |
void |
setCount(int count)
Set the number of work items. |
void |
setTaskName(String taskName)
Optionally set the task name. |
void |
updateProgress(int count)
Set the current progress. |
Method Detail |
---|
void setTaskName(String taskName)
setCount(int)
or immediately after reset()
.
taskName
- name of the task.void reset()
setTaskName(String)
. After calling
thism method, you must call setCount(int)
before calling
updateProgress(int)
.
void setCount(int count)
updateProgress(int)
or immediately after a call to
reset()
.
count
- number of work items (must be greater than 0)void updateProgress(int count)
count
equals the parameter given to setCount(int)
. Values of
count
over multiple calls must always increase. Do not
call the method twice with the same value or with a lower value.
count
- current progress.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |