uk.org.retep.util.monitor
Interface ProgressListener

All Known Implementing Classes:
BandwidthProgressListener, JProgressBarListener, ProgressListenerAdaptor, ProgressListenerSet

public interface ProgressListener


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.
 

Method Detail

showProgress

void showProgress(int progress)
Notify listeners of the current progress.

Parameters:
progress - The current value of the process

showProgress

void showProgress(long inputSize,
                  long outputSize)
Notify listners of the current progress. This method is normall used by compression routines so the listener knows how much the input has been compressed by

Parameters:
inputSize - The current size of the input, possibly the amount read so far
outputSize - The current size of the output, probably the total size of the compressed output

setMaximum

void setMaximum(long maximum)
Notify the listeners that the maximum value has changed

Parameters:
maximum - The new maximum

setMaximum

void setMaximum(long inputMaximum,
                long outputMaximum)
Notify the listeners that the maximum value has changed

Parameters:
inputMaximum - The new maximum for the input
outputMaximum - The new maximum for the output.


Copyright © 1998-2010 Retep Development Group. All Rights Reserved.