net.sf.doolin.gui.action.task
Class BackgroundGUITaskExecutor<B,R>
java.lang.Object
net.sf.doolin.gui.action.task.BackgroundGUITaskExecutor<B,R>
- Type Parameters:
B - Type of bean sent to the taskR - Type of bean returned by the task
- All Implemented Interfaces:
- GUITaskExecutor<B,R>
public class BackgroundGUITaskExecutor<B,R>
- extends Object
- implements GUITaskExecutor<B,R>
This GUITaskExecutor executes the task in the background, using a
SwingWorker.
- Author:
- Damien Coraboeuf
|
Method Summary |
void |
execute(ActionContext actionContext,
B bean,
GUITask<B,R> task)
Executes a given task, starting from a given action context and with a
given bean input. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BackgroundGUITaskExecutor
public BackgroundGUITaskExecutor()
execute
public void execute(ActionContext actionContext,
B bean,
GUITask<B,R> task)
throws TaskException
- Description copied from interface:
GUITaskExecutor
- Executes a given task, starting from a given action context and with a
given bean input.
- Specified by:
execute in interface GUITaskExecutor<B,R>
- Parameters:
actionContext - Action context to execute the task inbean - Input for the tasktask - Task to execute
- Throws:
TaskException - If the task has returned an error
Copyright © 2011. All Rights Reserved.