|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatusListener
This interface defines something that can display the current status of an ongoing long-running operation.
Method Summary | |
---|---|
boolean |
isOperationComplete()
Test whether the operation monitored by this StatusListener is done. |
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. |
Method Detail |
---|
void updateMessage(java.lang.String msg) throws UserAbort
msg
- String message to display
UserAbort
- 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()
void show()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |