net.sf.doolin.gui.action
Class DelegateDialogAction<T>

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.DialogAction<T>
              extended by net.sf.doolin.gui.action.DelegateDialogAction<T>
Type Parameters:
T - Type of data
All Implemented Interfaces:
GUIAction, org.springframework.beans.factory.BeanNameAware

public class DelegateDialogAction<T>
extends DialogAction<T>

Dialog action that delegates to another object after the dialog has been validated.

Author:
Damien Coraboeuf (x74639)

Constructor Summary
DelegateDialogAction()
           
 
Method Summary
 ActionDelegate<T> getDelegate()
          Gets the delegate.
protected  void onOK(ActionContext actionContext, T bean)
          This method is called when the dialog has been validated.
 void setDelegate(ActionDelegate<T> delegate)
          Sets the delegate.
 
Methods inherited from class net.sf.doolin.gui.action.DialogAction
doExecute, getDialog, getModelFactory, onCancelled, setDialog, setModelFactory, setUseContext
 
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

DelegateDialogAction

public DelegateDialogAction()
Method Detail

onOK

protected void onOK(ActionContext actionContext,
                    T bean)
Description copied from class: DialogAction
This method is called when the dialog has been validated.

Specified by:
onOK in class DialogAction<T>
Parameters:
actionContext - Action context
bean - Edited bean

getDelegate

public ActionDelegate<T> getDelegate()
Gets the delegate.

Returns:
the delegate

setDelegate

public void setDelegate(ActionDelegate<T> delegate)
Sets the delegate.

Parameters:
delegate - the new delegate


Copyright © 2011. All Rights Reserved.