@Deprecated public class CancelTaskImpl extends java.lang.Object implements CancelTask
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cancel
Deprecated.
|
protected boolean |
done
Deprecated.
|
protected java.lang.String |
error
Deprecated.
|
protected java.lang.String |
note
Deprecated.
|
protected int |
progress
Deprecated.
|
protected boolean |
success
Deprecated.
|
| Constructor and Description |
|---|
CancelTaskImpl()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Deprecated.
Application will call this when the user cancels.
|
java.lang.String |
getErrorMessage()
Deprecated.
Application call this to get the error message, if any.
|
int |
getProgress()
Deprecated.
Application call this to get the progress count, if any.
|
java.lang.String |
getProgressMessage()
Deprecated.
Application call this to get the progress message, if any.
|
boolean |
isCancel()
Deprecated.
Calling routine may cancel, called routine checks this method, and if true, return asap.
|
boolean |
isDone()
Deprecated.
Application calls to see if task is done.
|
boolean |
isError()
Deprecated.
Application call this to find out if there was an error.
|
boolean |
isSuccess()
Deprecated.
Application calls to see if task is success.
|
void |
setDone(boolean done)
Deprecated.
Called routine sets operation was completed.
|
void |
setError(java.lang.String error)
Deprecated.
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)
Deprecated.
Called routine may optionally show a progress message for calling program to show to user.
|
void |
setSuccess()
Deprecated.
Called routine sets whether operation successfully completed.
|
java.lang.String |
toString()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateprotected boolean done
protected boolean success
protected boolean cancel
protected java.lang.String error
protected java.lang.String note
protected int progress
public boolean isSuccess()
public boolean isError()
public java.lang.String getErrorMessage()
public void cancel()
public java.lang.String getProgressMessage()
public int getProgress()
public boolean isDone()
CancelTaskisDone in interface CancelTaskpublic void setDone(boolean done)
CancelTasksetDone in interface CancelTaskpublic boolean isCancel()
CancelTaskisCancel in interface CancelTaskpublic void setSuccess()
CancelTasksetSuccess in interface CancelTaskpublic void setError(java.lang.String error)
CancelTasksetError in interface CancelTaskerror - message to show userpublic void setProgress(java.lang.String msg,
int progress)
CancelTasksetProgress in interface CancelTaskmsg - message to show userprogress - count of progresspublic java.lang.String toString()
toString in class java.lang.Object