public interface StatusListener
Modifier and Type | Method and Description |
---|---|
boolean |
isAborted()
Test whether the user has requested that the long-running operation be aborted.
|
boolean |
isOperationComplete()
Test whether the operation monitored by this StatusListener is done.
|
void |
setAbortListener(AbortListener abortListener)
Register an asynchronous callback to indicate the user requested cancellation.
|
void |
setOperationComplete()
Report that the long-running operation is done.
|
void |
show()
Make a modal StatusListener visible.
|
void |
updateMessage(java.lang.String msg)
Update the status message for this operation.
|
void |
updateProgress(double percent)
Update the progress percentage for this operation.
|
void |
updateStatus(java.lang.String msg,
double percent)
Update the status message and progress percentage for this operation.
|
void |
updateStatusSynchronously(java.lang.String msg,
double percent)
Update the status message and progress percentage for this operation, blocking
until the GUI is updated.
|
void setAbortListener(AbortListener abortListener)
abortListener
- AbortListener to call from UI thread when cancellation is requested, or null to remove
cancellation callback objectvoid updateMessage(java.lang.String msg) throws UserAbort
msg
- String message to displayUserAbort
- if user wants to stop long-running operationvoid updateProgress(double percent) throws UserAbort
percent
- percent complete in the range 0 to 100.UserAbort
- if user wants to stop long-running operationvoid updateStatus(java.lang.String msg, double percent) throws UserAbort
msg
- String message to displaypercent
- percent complete in the range 0 to 100.UserAbort
- if user wants to stop long-running operationvoid updateStatusSynchronously(java.lang.String msg, double percent) throws UserAbort
msg
- String message to displaypercent
- percent complete in the range 0 to 100.UserAbort
- if user wants to stop long-running operationvoid setOperationComplete()
boolean isOperationComplete()
boolean isAborted()
void show()