| org.netbeans.microedition.util.CancellableTask
All known Subclasses: org.netbeans.microedition.util.SimpleCancellableTask,
CancellableTask | public interface CancellableTask extends Runnable(Code) | | A CancellableTask object is used in WaitScreen component to be run in
the background.
author: breh |
Method Summary | |
public boolean | cancel() Advises to interrupt the run method and cancel it's task. | public String | getFailureMessage() Gets the reason for the failure. | public boolean | hasFailed() Informs whether the task run was not successfull. |
cancel | public boolean cancel()(Code) | | Advises to interrupt the run method and cancel it's task. It's the task
responsibility to implement the cancel method in a cooperative manner.
true if the task was successfully cancelled, false otherwise |
getFailureMessage | public String getFailureMessage()(Code) | | Gets the reason for the failure. In the case there was not any failure, this method should return null.
A descriptive message of the failuire or null if there was no failure. |
hasFailed | public boolean hasFailed()(Code) | | Informs whether the task run was not successfull. For example when an
exception was thrown in the task code.
true if the task did not finish correctly. False if everything was ok. |
|
|