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.WrapperEMPTY| 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, setTitlepublic boolean isCanceled()
ProgressListenerProgressListener.setProgress(double), ProgressListener.setIndeterminateProgress() and ProgressListener.setMessage(java.lang.String)
to determine the return value of these methods.isCanceled in interface CancelableisCanceled in class ProgressListenerpublic 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/