Package ucar.nc2.util
Class CancelTaskImpl
java.lang.Object
ucar.nc2.util.CancelTaskImpl
- All Implemented Interfaces:
CancelTask
Deprecated.
will move or be private in ver6
Default implementation of CancelTask, used in order to get status return.
- Since:
- 4/10/13
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Deprecated.Application will call this when the user cancels.Deprecated.Application call this to get the error message, if any.intDeprecated.Application call this to get the progress count, if any.Deprecated.Application call this to get the progress message, if any.booleanisCancel()Deprecated.Calling routine may cancel, called routine checks this method, and if true, return asap.booleanisDone()Deprecated.Application calls to see if task is done.booleanisError()Deprecated.Application call this to find out if there was an error.booleanDeprecated.Application calls to see if task is success.voidsetDone(boolean done) Deprecated.Called routine sets operation was completed.voidDeprecated.Called routine got an error, so it sets a message for calling program to show to user.voidsetProgress(String msg, int progress) Deprecated.Called routine may optionally show a progress message for calling program to show to user.voidDeprecated.Called routine sets whether operation successfully completed.toString()Deprecated.
-
Constructor Details
-
CancelTaskImpl
public CancelTaskImpl()Deprecated.
-
-
Method Details
-
isSuccess
public boolean isSuccess()Deprecated.Application calls to see if task is success. -
isError
public boolean isError()Deprecated.Application call this to find out if there was an error. -
getErrorMessage
Deprecated.Application call this to get the error message, if any. -
cancel
public void cancel()Deprecated.Application will call this when the user cancels. -
getProgressMessage
Deprecated.Application call this to get the progress message, if any. -
getProgress
public int getProgress()Deprecated.Application call this to get the progress count, if any. -
isDone
public boolean isDone()Deprecated.Description copied from interface:CancelTaskApplication calls to see if task is done.- Specified by:
isDonein interfaceCancelTask
-
setDone
public void setDone(boolean done) Deprecated.Description copied from interface:CancelTaskCalled routine sets operation was completed.- Specified by:
setDonein interfaceCancelTask
-
isCancel
public boolean isCancel()Deprecated.Description copied from interface:CancelTaskCalling routine may cancel, called routine checks this method, and if true, return asap.- Specified by:
isCancelin interfaceCancelTask- Returns:
- true if task was cancelled
-
setSuccess
public void setSuccess()Deprecated.Description copied from interface:CancelTaskCalled routine sets whether operation successfully completed.- Specified by:
setSuccessin interfaceCancelTask
-
setError
Deprecated.Description copied from interface:CancelTaskCalled routine got an error, so it sets a message for calling program to show to user.- Specified by:
setErrorin interfaceCancelTask- Parameters:
error- message to show user
-
setProgress
Deprecated.Description copied from interface:CancelTaskCalled routine may optionally show a progress message for calling program to show to user.- Specified by:
setProgressin interfaceCancelTask- Parameters:
msg- message to show userprogress- count of progress
-
toString
Deprecated.
-