Package org.openxava.actions
Class RemoveSelectedInCollectionAction
- java.lang.Object
-
- org.openxava.actions.BaseAction
-
- org.openxava.actions.ViewBaseAction
-
- org.openxava.actions.CollectionElementViewBaseAction
-
- org.openxava.actions.CollectionBaseAction
-
- org.openxava.actions.DeleteSelectedInCollectionBaseAction
-
- org.openxava.actions.RemoveSelectedInCollectionAction
-
- All Implemented Interfaces:
IAction
,IChangeModeAction
,IModuleContextAction
,IRequestAction
- Direct Known Subclasses:
RemoveChartColumnAction
,RemoveSelectedInElementCollectionAction
public class RemoveSelectedInCollectionAction extends DeleteSelectedInCollectionBaseAction
The default action to remove an element in a @OneToMany/@ManyToMany collection. For an @ElementColection useRemoveSelectedInElementCollectionAction
.- Author:
- Ana Andrés, Jeromy Altuna, Javier Paniza
-
-
Field Summary
-
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT
-
-
Constructor Summary
Constructors Constructor Description RemoveSelectedInCollectionAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addMessage()
protected void
removeElement(java.util.Map values)
Is called for each selected row with the values that includes the key values.-
Methods inherited from class org.openxava.actions.DeleteSelectedInCollectionBaseAction
execute
-
Methods inherited from class org.openxava.actions.CollectionBaseAction
getMapsSelectedValues, getMapValues, getObjects, getRow, getSelectedKeys, getSelectedObjects, setRow
-
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
changeThisPropertyByViewValue, 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
-
removeElement
protected void removeElement(java.util.Map values) throws java.lang.Exception
Is called for each selected row with the values that includes the key values.- Specified by:
removeElement
in classDeleteSelectedInCollectionBaseAction
- Throws:
java.lang.Exception
-
addMessage
protected void addMessage()
- Specified by:
addMessage
in classDeleteSelectedInCollectionBaseAction
- Since:
- 5.3.2
-
-