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

java.lang.Object
  extended by net.sf.doolin.gui.action.task.MonitoredGUITaskExecutor<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 MonitoredGUITaskExecutor<B,R>
extends Object
implements GUITaskExecutor<B,R>

Runs a GUITask whose execution is monitored by a modal dialog.

Author:
Damien Coraboeuf
See Also:
TaskMonitor

Constructor Summary
MonitoredGUITaskExecutor()
           
 
Method Summary
 void execute(ActionContext actionContext, B bean, GUITask<B,R> guiTask)
          Executes a given task, starting from a given action context and with a given bean input.
 void setMessageExpression(String messageExpression)
          Sets the expression for the message to display in the monitor.
 void setTitleExpression(String titleExpression)
          Sets the expression for the title to display in the monitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoredGUITaskExecutor

public MonitoredGUITaskExecutor()
Method Detail

execute

public void execute(ActionContext actionContext,
                    B bean,
                    GUITask<B,R> guiTask)
             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
guiTask - Task to execute
Throws:
TaskException - If the task has returned an error

setMessageExpression

public void setMessageExpression(String messageExpression)
Sets the expression for the message to display in the monitor. Its model is the input bean of the task.

Parameters:
messageExpression - Expression

setTitleExpression

public void setTitleExpression(String titleExpression)
Sets the expression for the title to display in the monitor. Its model is the input bean of the task.

Parameters:
titleExpression - Expression


Copyright © 2011. All Rights Reserved.