Package org.openxava.actions
Class CreateNewElementInCollectionAction
- java.lang.Object
-
- org.openxava.actions.BaseAction
-
- org.openxava.actions.ViewBaseAction
-
- org.openxava.actions.CollectionElementViewBaseAction
-
- org.openxava.actions.CreateNewElementInCollectionAction
-
- All Implemented Interfaces:
IAction
,IChangeModeAction
,IModuleContextAction
,IRequestAction
- Direct Known Subclasses:
CreateNewMyReportColumnAction
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
Constructors Constructor Description CreateNewElementInCollectionAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
protected boolean
isParentSaved()
-
Methods inherited from class org.openxava.actions.CollectionElementViewBaseAction
closeDialog, getCollectionElementView, getMetaCollection, getParentView, getView, getViewObject, isCloseDialogDisallowed, isEntityReferencesCollection, isEntityReferencesCollection, mustRefreshCollection, setCloseDialogDisallowed, setViewObject, showDialog, validateMaximum, validateMinimum
-
Methods inherited from class org.openxava.actions.ViewBaseAction
getModelName, getPreviousView, getPreviousViews, resetDescriptionsCache, returnToPreviousView, setControllers, setPreviousViews, setView, showDialog, showNewView, showView, validateViewValues
-
Methods inherited from class org.openxava.actions.BaseAction
addActions, addError, addErrors, addInfo, addMessage, addMessages, addWarning, clearActions, commit, executeAction, executeAfter, executeBefore, getContext, getEnvironment, getErrors, getLocale, getManager, getMessages, getNextMode, getQualifiedActionIfAvailable, getRequest, removeActions, returnToPreviousControllers, rollback, setContext, setDefaultControllers, setEnvironment, setErrors, setMessages, setNextMode, setRequest
-
-
-
-
Method Detail
-
execute
public void execute() throws java.lang.Exception
- Specified by:
execute
in interfaceIAction
- Specified by:
execute
in classCollectionElementViewBaseAction
- Throws:
java.lang.Exception
-
isParentSaved
protected boolean isParentSaved()
-
-