org.openxava.actions
Class CreateNewElementInCollectionAction

java.lang.Object
  extended by org.openxava.actions.BaseAction
      extended by org.openxava.actions.ViewBaseAction
          extended by org.openxava.actions.CollectionElementViewBaseAction
              extended by org.openxava.actions.CreateNewElementInCollectionAction
All Implemented Interfaces:
IAction, IChangeModeAction, IModuleContextAction, IRequestAction

public class CreateNewElementInCollectionAction
extends CollectionElementViewBaseAction

Create a new element in collection.

Since 4m5 creates two buttons for the save action, ones that closes the dialog and the other that stays.

Author:
Javier Paniza

Field Summary
 
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT
 
Constructor Summary
CreateNewElementInCollectionAction()
           
 
Method Summary
 void execute()
           
 
Methods inherited from class org.openxava.actions.CollectionElementViewBaseAction
closeDialog, getCollectionElementView, getParentView, getView, getViewObject, isCloseDialogDisallowed, isEntityReferencesCollection, setCloseDialogDisallowed, setViewObject, showDialog
 
Methods inherited from class org.openxava.actions.ViewBaseAction
getModelName, getPreviousView, getPreviousViews, resetDescriptionsCache, returnToPreviousView, setControllers, setPreviousViews, setView, showDialog, showNewView, showView
 
Methods inherited from class org.openxava.actions.BaseAction
addActions, addError, addErrors, addInfo, addMessage, addMessages, addWarning, clearActions, executeAfter, executeBefore, getContext, getEnvironment, getErrors, getLocale, getManager, getMessages, getNextMode, getRequest, removeActions, returnToPreviousControllers, setContext, setDefaultControllers, setEnvironment, setErrors, setMessages, setNextMode, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateNewElementInCollectionAction

public CreateNewElementInCollectionAction()
Method Detail

execute

public void execute()
             throws java.lang.Exception
Specified by:
execute in interface IAction
Specified by:
execute in class CollectionElementViewBaseAction
Throws:
java.lang.Exception