net.sf.doolin.gui.action
Class OpenViewAction<V>

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.OpenViewAction<V>
Type Parameters:
V - Type of view for the data
All Implemented Interfaces:
GUIAction, org.springframework.beans.factory.BeanNameAware

public class OpenViewAction<V>
extends AbstractSimpleGUIAction

Opens a view.

Author:
Damien Coraboeuf

Constructor Summary
OpenViewAction()
           
 
Method Summary
protected  void doExecute(ActionContext context)
          Builds a new model and opens the view
 DataFactory<V> getModelFactory()
          Gets the model factory.
 ViewOpener<V> getViewOpener()
          Gets the view opener.
 void setModelFactory(DataFactory<V> modelFactory)
          Sets the model factory.
 void setUseContextData(boolean useContextData)
          Deprecated. Use AbstractGUIAction.setActionContextDataExtractor(net.sf.doolin.gui.action.support.ActionContextDataExtractor)
 void setViewOpener(ViewOpener<V> viewOpener)
          Sets the view opener.
 
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

OpenViewAction

public OpenViewAction()
Method Detail

doExecute

protected void doExecute(ActionContext context)
                  throws Exception
Builds a new model and opens the view

Specified by:
doExecute in class AbstractGUIAction
Parameters:
context - the context
Throws:
Exception - the exception
See Also:
AbstractGUIAction.doExecute(net.sf.doolin.gui.action.ActionContext)

getModelFactory

public DataFactory<V> getModelFactory()
Gets the model factory.

Returns:
the model factory

getViewOpener

public ViewOpener<V> getViewOpener()
Gets the view opener.

Returns:
the view opener

setModelFactory

public void setModelFactory(DataFactory<V> modelFactory)
Sets the model factory.

Parameters:
modelFactory - the model factory

setUseContextData

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

Parameters:
useContextData - true if the contextual data of the context must used instead of the data

setViewOpener

public void setViewOpener(ViewOpener<V> viewOpener)
Sets the view opener.

Parameters:
viewOpener - the new view opener


Copyright © 2011. All Rights Reserved.