| java.lang.Object edu.rice.cs.util.swing.AsyncCompletionArgs
AsyncCompletionArgs | public class AsyncCompletionArgs (Code) | | author: jlugo |
Method Summary | |
public boolean | cancelRequested() Returns whether the user requested that the operation be canceled before
completing. | public Exception | getCaughtException() Returns the exception thrown from within the asynchronous task if an
exception was thrown. | public R | getResult() Returns the result of the asynchronous computation performed by the
AsyncTask . | public void | throwCaughtException() If an exception was thrown during the execution of the AsyncTask, calling
this method will cause the exception to be thrown again in the thread that
calls this method. |
AsyncCompletionArgs | public AsyncCompletionArgs(R result, boolean cancelRequested)(Code) | | |
AsyncCompletionArgs | public AsyncCompletionArgs(R result, Exception caughtException, boolean wasCanceled)(Code) | | |
cancelRequested | public boolean cancelRequested()(Code) | | Returns whether the user requested that the operation be canceled before
completing. The task itself is responsible for terminating its own
execution and thus may have successfully completed.
Whether the user requested for the task to be canceled was |
getCaughtException | public Exception getCaughtException()(Code) | | Returns the exception thrown from within the asynchronous task if an
exception was thrown. If no exception was thrown and the task completed
successfully, this value will be null.
The exception that was caught when runningAsyncTask.runAsync or null if noexception was thrown. |
getResult | public R getResult()(Code) | | Returns the result of the asynchronous computation performed by the
AsyncTask . If the task threw an exception, this value will
be null. The exception can be obtained by calling
getCaughtException
The resulting data produced by AsyncTask.runAsync |
throwCaughtException | public void throwCaughtException() throws Exception(Code) | | If an exception was thrown during the execution of the AsyncTask, calling
this method will cause the exception to be thrown again in the thread that
calls this method. If no exception was thrown, this method does nothing.
throws: Exception - If an exception was thrown from within the asynchronous task. |
|
|