protected static class DapNetcdfFile.NullCancelTask extends java.lang.Object implements CancelTask
Modifier | Constructor and Description |
---|---|
protected |
NullCancelTask() |
Modifier and Type | Method and Description |
---|---|
boolean |
isCancel()
Calling routine may cancel, called routine checks this method, and if true, return asap.
|
boolean |
isDone()
Application calls to see if task is done.
|
void |
setDone(boolean done)
Called routine sets operation was completed.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, setSuccess
public boolean isCancel()
CancelTask
isCancel
in interface CancelTask
public boolean isDone()
CancelTask
isDone
in interface CancelTask
public void setDone(boolean done)
CancelTask
setDone
in interface CancelTask
public void setError(java.lang.String msg)
CancelTask
setError
in interface CancelTask
msg
- message to show userpublic void setProgress(java.lang.String msg, int progress)
CancelTask
setProgress
in interface CancelTask
msg
- message to show userprogress
- count of progress