jebl.util
public class BasicProgressListener extends ProgressListener
ProgressListener
implementation that allows the caller to set the canceled
status. Typically this class is used when you don't care about providing immediate feedback to
the user, but still need to be able to cancel an operation.ProgressListener.Wrapper
EMPTY
Constructor and Description |
---|
BasicProgressListener() |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Sets this progress listener as cancel, so that
isCanceled() will return true. |
double |
getFractionCompleted() |
java.lang.String |
getMessage() |
boolean |
isCanceled()
This method must be implemented by all subclasses.
|
boolean |
isIndeterminate() |
addFeedbackAction, addFeedbackAction, removeFeedbackAction, setImage, setIndeterminateProgress, setMessage, setProgress, setProgress, setProgress, setTitle
public boolean isCanceled()
ProgressListener
ProgressListener.setProgress(double)
, ProgressListener.setIndeterminateProgress()
and ProgressListener.setMessage(java.lang.String)
to determine the return value of these methods.isCanceled
in interface Cancelable
isCanceled
in class ProgressListener
public void cancel()
isCanceled()
will return true.public java.lang.String getMessage()
public double getFractionCompleted()
public boolean isIndeterminate()
ProgressListener.setIndeterminateProgress()
has been called, and ProgressListener.setProgress(double)
has not been called sincehttp://code.google.com/p/jebl2/