public interface CancelTask
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCancel()
Called routine should check often during the task and cancel the task if it returns true.
|
void |
setError(java.lang.String msg)
Called routine got an error, so it sets a message for calling program to show to user.
|
void |
setProgress(java.lang.String msg,
int progress)
Called routine may optionally show a progress message for calling program to show to user.
|
boolean isCancel()
void setError(java.lang.String msg)
msg - message to show uservoid setProgress(java.lang.String msg,
int progress)
msg - message to show userprogress - count of progress