public interface ProgressObserver
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the operation.
|
void |
close()
Closes the progress observer.
|
void |
complete()
Indicate that the operation is complete.
|
java.lang.String |
getError()
Specifies the error message that is displayed along with the
progress message.
|
int |
getMaximum()
Returns the maximum value -- the higher end of the progress value.
|
int |
getMinimum()
Returns the minimum value -- the lower end of the progress value.
|
javax.swing.BoundedRangeModel |
getModel() |
java.lang.String |
getNote()
Specifies the additional note that is displayed along with the
progress message.
|
int |
getProgress()
Returns the progress of the operation being monitored.
|
java.lang.String |
getWarning()
Specifies the warning message that is displayed along with the
progress message.
|
boolean |
isCanceled()
Returns true if the user has hit the Cancel button in the progress dialog.
|
boolean |
isClosed()
Returns true if the progress observer is closed.
|
boolean |
isCompleted()
Returns true if the operation is completed.
|
boolean |
isIndeterminate()
Returns true if the progress observer is set to indeterminate.
|
void |
setCancelable(boolean b)
Set cancelable to false if the operation can not be canceled.
|
void |
setDoCancel(java.lang.Runnable doCancel)
The specified Runnable is executed when the user presses
the cancel button.
|
void |
setError(java.lang.String message)
Specifies the additional error message that is displayed along with the
progress message.
|
void |
setIndeterminate(boolean newValue)
Sets the progress observer to indeterminate.
|
void |
setMaximum(int m)
Specifies the maximum value.
|
void |
setMinimum(int m)
Specifies the minimum value.
|
void |
setModel(javax.swing.BoundedRangeModel brm) |
void |
setNote(java.lang.String note)
Specifies the additional note that is displayed along with the
progress message.
|
void |
setProgress(int nv)
Indicate the progress of the operation being monitored.
|
void |
setWarning(java.lang.String message)
Specifies the additional warning message that is displayed along with the
progress message.
|
void setModel(javax.swing.BoundedRangeModel brm)
javax.swing.BoundedRangeModel getModel()
void setCancelable(boolean b)
void setDoCancel(java.lang.Runnable doCancel)
void setProgress(int nv)
nv - an int specifying the current value, between the
maximum and minimum specified for this componentsetMinimum(int),
setMaximum(int),
close()int getProgress()
int getMinimum()
setMinimum(int)void setMinimum(int m)
m - an int specifying the minimum valuegetMinimum()int getMaximum()
setMaximum(int)void setMaximum(int m)
m - an int specifying the maximum valuegetMaximum()void setIndeterminate(boolean newValue)
boolean isIndeterminate()
void complete()
boolean isCompleted()
void cancel()
boolean isCanceled()
void close()
boolean isClosed()
void setNote(java.lang.String note)
note - a String specifying the note to displaygetNote()java.lang.String getNote()
setNote(java.lang.String)void setWarning(java.lang.String message)
message - a String specifying the message to display, or null
if there is no warning.getWarning()java.lang.String getWarning()
void setError(java.lang.String message)
message - a String specifying the message to display, or null
if there is no error.getWarning()java.lang.String getError()