|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
B - Type of bean sent to the taskR - Type of bean returned by the taskpublic interface GUITask<B,R>
Defines a task that can run in a GUI application. It is not run directly but
launched and monitored by a GUITaskExecutor.
| Method Summary | |
|---|---|
R |
doInBackground(ActionContext actionContext,
B bean)
Performs the main task, outside of the EDT. |
void |
doOnException(ActionContext actionContext,
B bean,
Throwable th)
This method is called by the task executor whenever that task has returned an error |
void |
doOnResult(ActionContext actionContext,
B bean,
R result)
This method is called on the EDT when the task has completed its work. |
| Method Detail |
|---|
R doInBackground(ActionContext actionContext,
B bean)
throws Exception
actionContext - Initial action contextbean - Bean sent to the task
Exception - In case of failure
void doOnException(ActionContext actionContext,
B bean,
Throwable th)
actionContext - Initial action contextbean - Bean sent to the taskth - Error thrown by the task
void doOnResult(ActionContext actionContext,
B bean,
R result)
actionContext - Initial action contextbean - Bean sent to the taskresult - Bean returned by the task
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||