|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProgressMonitor
Interface defining progress monitoring for long running tasks. This
interface defines listeners to be notified on progress of long running tasks.
Progress is defined as an integer value without any predefined scale.
Implementor will provide maximum ammount (getTotal()
) and
periodically update current value. When getCurrent()
equals
getTotal()
the task is expected to end.
Method Summary | |
---|---|
void |
addProgressListener(ProgressListener listener)
Add progress listener to this object. |
int |
getCurrent()
Returns current progress, value will be between 0 and getStatus() . |
java.lang.String |
getStatus()
Returns description of current task. |
int |
getTotal()
Returns total progress, that is value when this task will be complete. |
void |
removeProgressListener(ProgressListener listener)
Removes listener. |
Method Detail |
---|
void addProgressListener(ProgressListener listener)
listener
- to add.int getCurrent()
getStatus()
.
int getTotal()
java.lang.String getStatus()
void removeProgressListener(ProgressListener listener)
listener
- to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |