net.sf.doolin.gui.action
Class PromptGUIAction

java.lang.Object
  extended by net.sf.doolin.gui.action.AbstractGUIAction
      extended by net.sf.doolin.gui.action.AbstractSimpleGUIAction
          extended by net.sf.doolin.gui.action.PromptGUIAction
All Implemented Interfaces:
GUIAction, org.springframework.beans.factory.BeanNameAware

public class PromptGUIAction
extends AbstractSimpleGUIAction

This action prompts the user for a confirmation and delegates the call to another action. The prompt expression uses the context data for its resolution.

Author:
Damien Coraboeuf

Constructor Summary
PromptGUIAction()
           
 
Method Summary
protected  void doExecute(ActionContext context)
          Executes the action and throws any kind of error.
 GUIAction getAction()
           
 String getPromptExpression()
           
 void setAction(GUIAction action)
           
 void setPromptExpression(String promptExpression)
           
 void setUseContextData(boolean useContextData)
          Deprecated. Use AbstractGUIAction.setActionContextDataExtractor(net.sf.doolin.gui.action.support.ActionContextDataExtractor)
 
Methods inherited from class net.sf.doolin.gui.action.AbstractSimpleGUIAction
getIconId, getIconIDExpression, getId, getShortcut, getShortcutExpression, getTextExpression, getTip, getTipExpression, getTitle, init, setBeanName, setIconId, setShortcut, setTip, setTitle, toString
 
Methods inherited from class net.sf.doolin.gui.action.AbstractGUIAction
execute, getActionContextData, getActionContextDataExtractor, getDisplayStateHandler, getIcon, getIconService, setActionContextDataExtractor, setDisplayStateHandler, setIconService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PromptGUIAction

public PromptGUIAction()
Method Detail

doExecute

protected void doExecute(ActionContext context)
                  throws Exception
Description copied from class: AbstractGUIAction
Executes the action and throws any kind of error.

Specified by:
doExecute in class AbstractGUIAction
Parameters:
context - the context
Throws:
Exception - the exception

getAction

public GUIAction getAction()

getPromptExpression

public String getPromptExpression()

setAction

public void setAction(GUIAction action)

setPromptExpression

public void setPromptExpression(String promptExpression)

setUseContextData

@Deprecated
public void setUseContextData(boolean useContextData)
Deprecated. Use AbstractGUIAction.setActionContextDataExtractor(net.sf.doolin.gui.action.support.ActionContextDataExtractor)



Copyright © 2011. All Rights Reserved.