@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, wait
create
protected 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()
CancelTask
isDone
in interface CancelTask
public void setDone(boolean done)
CancelTask
setDone
in interface CancelTask
public boolean isCancel()
CancelTask
isCancel
in interface CancelTask
public void setSuccess()
CancelTask
setSuccess
in interface CancelTask
public void setError(java.lang.String error)
CancelTask
setError
in interface CancelTask
error
- message to show userpublic void setProgress(java.lang.String msg, int progress)
CancelTask
setProgress
in interface CancelTask
msg
- message to show userprogress
- count of progresspublic java.lang.String toString()
toString
in class java.lang.Object