net.sf.doolin.gui.action.task
Class BackgroundGUITaskExecutor<B,R>

java.lang.Object
  extended by net.sf.doolin.gui.action.task.BackgroundGUITaskExecutor<B,R>
Type Parameters:
B - Type of bean sent to the task
R - 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

Constructor Summary
BackgroundGUITaskExecutor()
           
 
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
 

Constructor Detail

BackgroundGUITaskExecutor

public BackgroundGUITaskExecutor()
Method Detail

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 in
bean - Input for the task
task - Task to execute
Throws:
TaskException - If the task has returned an error


Copyright © 2011. All Rights Reserved.