|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.vxart.zipupdate.ProgressListenerManager
public class ProgressListenerManager
Provides a convenient way to handle multiple ProgressListeners at once.
Constructor Summary | |
---|---|
ProgressListenerManager()
|
Method Summary | |
---|---|
void |
add(ProgressListener listener)
|
void |
finish()
Finishes the display of progress by a progress listener, e.g. |
int |
getProgress()
Returns the progress from the first registered listeners. |
void |
init(java.lang.String message)
Sets or resets this listener to indeterminate mode and labels it with the given message. |
void |
init(java.lang.String message,
int min,
int max)
Sets or resets this listener to determinate mode using the specified message, minimum and maximum values. |
java.util.Iterator<ProgressListener> |
iterator()
Returns and Iterator over all ProgressListeners registered with this manager. |
void |
label(java.lang.String label)
Labels the current task with the specified string. |
void |
remove(ProgressListener listener)
|
int |
size()
Returns the number of ProgressListener registered with this manager. |
void |
update(int progress)
Updates the progress to the specified value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProgressListenerManager()
Method Detail |
---|
public void add(ProgressListener listener)
public void remove(ProgressListener listener)
public void init(java.lang.String message)
ProgressListener
init
in interface ProgressListener
public void init(java.lang.String message, int min, int max)
ProgressListener
init
in interface ProgressListener
public void update(int progress)
ProgressListener
update
in interface ProgressListener
progress
- the new progress valuepublic void label(java.lang.String label)
ProgressListener
label
in interface ProgressListener
label
- a label describing the current taskpublic void finish()
ProgressListener
finish
in interface ProgressListener
public java.util.Iterator<ProgressListener> iterator()
iterator
in interface java.lang.Iterable
public int getProgress()
getProgress
in interface ProgressListener
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |