|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.util.swing.AsyncCompletionArgs<R>
public class AsyncCompletionArgs<R>
Constructor Summary | |
---|---|
AsyncCompletionArgs(R result,
boolean cancelRequested)
|
|
AsyncCompletionArgs(R result,
Exception caughtException,
boolean wasCanceled)
|
Method Summary | |
---|---|
boolean |
cancelRequested()
Returns whether the user requested cancellation of the operation before completion. |
Exception |
getCaughtException()
Returns the exception thrown from within the asynchronous task if an exception was thrown. |
R |
getResult()
Returns the result of the asynchronous computation performed by the AsyncTask . |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsyncCompletionArgs(R result, boolean cancelRequested)
public AsyncCompletionArgs(R result, Exception caughtException, boolean wasCanceled)
Method Detail |
---|
public R getResult()
AsyncTask
. If the task threw an exception, this value will
be null. The exception can be obtained by calling
getCaughtException
AsyncTask.runAsync
public Exception getCaughtException()
AsyncTask.runAsync
or null
if no
exception was thrown.public void throwCaughtException() throws Exception
Exception
- if an exception was thrown from within the asynchronous task.public boolean cancelRequested()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |