Package org.openxava.actions
Class CutElementsFromCollectionAction
java.lang.Object
org.openxava.actions.BaseAction
org.openxava.actions.ViewBaseAction
org.openxava.actions.CollectionElementViewBaseAction
org.openxava.actions.CollectionBaseAction
org.openxava.actions.CutElementsFromCollectionAction
- All Implemented Interfaces:
IAction,IAvailableAction,IChangeModeAction,IJavaScriptPostAction,IModuleContextAction,IRequestAction
public class CutElementsFromCollectionAction
extends CollectionBaseAction
implements IAvailableAction, IJavaScriptPostAction
- Since:
- 5.9
- Author:
- Javier Paniza
-
Field Summary
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()The JavaScript code to execute.booleanIf true the action will be available for the user, otherwise it will be hidden.protected booleanMethods inherited from class org.openxava.actions.CollectionBaseAction
getMapsSelectedValues, getMapValues, getObjects, getRow, getSelectedKeys, getSelectedObjects, setRowMethods inherited from class org.openxava.actions.CollectionElementViewBaseAction
closeDialog, getCollectionElementView, getCollectionLabel, getMetaCollection, getMetaCollectionView, getParentView, getView, getViewObject, isCloseDialogDisallowed, isEntityReferencesCollection, isEntityReferencesCollection, setCloseDialogDisallowed, setViewObject, 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
-
CutElementsFromCollectionAction
public CutElementsFromCollectionAction()
-
-
Method Details
-
execute
- Specified by:
executein interfaceIAction- Specified by:
executein classCollectionElementViewBaseAction- Throws:
Exception
-
mustRefreshCollection
protected boolean mustRefreshCollection()- Overrides:
mustRefreshCollectionin classCollectionElementViewBaseAction
-
isAvailable
public boolean isAvailable()Description copied from interface:IAvailableActionIf true the action will be available for the user, otherwise it will be hidden.
This method is executed before determine if the action has to be shown, so before execute(). The action is configured completely (injecting all needed objects and properties) before calling isAvailable().- Specified by:
isAvailablein interfaceIAvailableAction
-
getPostJavaScript
Description copied from interface:IJavaScriptPostActionThe JavaScript code to execute.- Specified by:
getPostJavaScriptin interfaceIJavaScriptPostAction
-