|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.org.retep.util.monitor.ProgressListenerAdaptor
public class ProgressListenerAdaptor
A base implementstion of ProgressListener that does nothing. The required methods should be overridden by the subclass.
| Constructor Summary | |
|---|---|
ProgressListenerAdaptor()
|
|
| Method Summary | |
|---|---|
void |
setMaximum(long maximum)
Notify the listeners that the maximum value has changed |
void |
setMaximum(long inputMaximum,
long outputMaximum)
Notify the listeners that the maximum value has changed |
void |
showProgress(int progress)
Notify listeners of the current progress. |
void |
showProgress(long inputSize,
long outputSize)
Notify listners of the current progress. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProgressListenerAdaptor()
| Method Detail |
|---|
public void showProgress(int progress)
ProgressListener
showProgress in interface ProgressListenerprogress - The current value of the process
public void showProgress(long inputSize,
long outputSize)
ProgressListener
showProgress in interface ProgressListenerinputSize - The current size of the input, possibly the amount read so faroutputSize - The current size of the output, probably the total size
of the compressed outputpublic void setMaximum(long maximum)
ProgressListener
setMaximum in interface ProgressListenermaximum - The new maximum
public void setMaximum(long inputMaximum,
long outputMaximum)
ProgressListener
setMaximum in interface ProgressListenerinputMaximum - The new maximum for the inputoutputMaximum - The new maximum for the output.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||