Class ProgressListener.Wrapper

java.lang.Object
jebl.util.ProgressListener
jebl.util.ProgressListener.Wrapper
All Implemented Interfaces:
Cancelable
Enclosing class:
ProgressListener

public static class ProgressListener.Wrapper extends ProgressListener
A decorator progress listener which delegates all method calls to an internal progress listener.
Version:
$Id: ProgressListener.java 1068 2010-09-08 23:59:59Z matt_kearse $ ProgressListener guarantees the following contract: A call to any of the methods setProgress(), setMessage(), isCanceled() and setIndeterminateProgress() at a given time yields the same result as a call to another of these methods would have resulted at the same time. Once the task whose progress we are observing has been canceled, calls to either of these methods reflect this. This does not prevent subclasses from introducing a way to "reset" a ProgressListener that was previously canceled from not being canceled any more. Any object may exhibit undefined behaviour when dealing with a ProgressListener that is not fulfilling this contract.
Author:
Matt Kearse