Package ucar.nc2.util
Class CancelTaskImpl
- java.lang.Object
-
- ucar.nc2.util.CancelTaskImpl
-
- All Implemented Interfaces:
CancelTask
@Deprecated public class CancelTaskImpl extends Object implements CancelTask
Deprecated.will move or be private in ver6Default implementation of CancelTask, used in order to get status return.- Since:
- 4/10/13
-
-
Constructor Summary
Constructors Constructor Description CancelTaskImpl()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcancel()Deprecated.Application will call this when the user cancels.StringgetErrorMessage()Deprecated.Application call this to get the error message, if any.intgetProgress()Deprecated.Application call this to get the progress count, if any.StringgetProgressMessage()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.booleanisSuccess()Deprecated.Application calls to see if task is success.voidsetDone(boolean done)Deprecated.Called routine sets operation was completed.voidsetError(String error)Deprecated.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.voidsetSuccess()Deprecated.Called routine sets whether operation successfully completed.StringtoString()Deprecated.
-
-
-
Method Detail
-
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
public String 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
public String 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
public void setError(String error)
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
public void setProgress(String msg, int progress)
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
-
-