Package org.openxava.actions
Class AddElementsToCollectionAction
java.lang.Object
org.openxava.actions.BaseAction
org.openxava.actions.ViewBaseAction
org.openxava.actions.CollectionElementViewBaseAction
org.openxava.actions.SaveElementInCollectionAction
org.openxava.actions.AddElementsToCollectionAction
- All Implemented Interfaces:
IAction,IChangeControllersAction,IChangeModeAction,ICustomViewAction,IModuleContextAction,INavigationAction,IRequestAction
public class AddElementsToCollectionAction
extends SaveElementInCollectionAction
implements INavigationAction
This is for the case of collections of entities without @AsEmbedded (or without as-aggregate="true").
The remaining cases are treated by SaveElementInCollectionAction.
This case add a group of entities from a list.
- Author:
- Javier Paniza, Jeromy Altuna
-
Field Summary
Fields inherited from interface org.openxava.actions.IChangeControllersAction
DEFAULT_CONTROLLERS, EMPTY_CONTROLLER, PREVIOUS_CONTROLLERS, SAME_CONTROLLERSFields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLITFields inherited from interface org.openxava.actions.ICustomViewAction
DEFAULT_VIEW, PREVIOUS_VIEW, SAME_VIEW -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openxava.actions.SaveElementInCollectionAction
addValidationMessage, associateEntity, create, getValuesToSave, saveCollectionElement, saveIfNotExistsMethods inherited from class org.openxava.actions.CollectionElementViewBaseAction
closeDialog, getCollectionElementView, getCollectionLabel, getMetaCollection, getMetaCollectionView, getParentView, getView, getViewObject, isCloseDialogDisallowed, isEntityReferencesCollection, isEntityReferencesCollection, mustRefreshCollection, setCloseDialogDisallowed, showDialog, validateMaximum, validateMinimumMethods inherited from class org.openxava.actions.ViewBaseAction
changeThisPropertyByViewValue, getModelName, getPreviousView, getPreviousViews, resetDescriptionsCache, returnToPreviousView, setControllers, setPreviousViews, setView, showDialog, showNewView, showView, validateViewValuesMethods 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, setRequestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openxava.actions.IAction
getErrors, getMessages, setEnvironment, setErrors, setMessages
-
Constructor Details
-
AddElementsToCollectionAction
public AddElementsToCollectionAction()
-
-
Method Details
-
execute
- Specified by:
executein interfaceIAction- Overrides:
executein classSaveElementInCollectionAction- Throws:
Exception
-
getNextAction
- Overrides:
getNextActionin classSaveElementInCollectionAction- Throws:
Exception
-
getTab
-
setTab
-
getNextControllers
- Specified by:
getNextControllersin interfaceIChangeControllersAction
-
getCustomView
Description copied from interface:ICustomViewActionThe id of a view made directly by developer (not OpenXava view).In web version is the name of jsp page (without .jsp extension). This is for inserting jsp (o swing) hand made view in our OpenXava application.
- Specified by:
getCustomViewin interfaceICustomViewAction
-
getRow
public int getRow() -
setRow
public void setRow(int row) -
setViewObject
- Overrides:
setViewObjectin classCollectionElementViewBaseAction
-