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 Constructor Description CutElementsFromCollectionAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()java.lang.StringgetPostJavaScript()The JavaScript code to execute.booleanisAvailable()If true the action will be available for the user, otherwise it will be hidden.protected booleanmustRefreshCollection()-
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, getCollectionLabel, getMetaCollection, getParentView, getView, getViewObject, isCloseDialogDisallowed, isEntityReferencesCollection, isEntityReferencesCollection, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openxava.actions.IAction
getErrors, getMessages, setEnvironment, setErrors, setMessages
-
-
-
-
Method Detail
-
execute
public void execute() throws java.lang.Exception- Specified by:
executein interfaceIAction- Specified by:
executein classCollectionElementViewBaseAction- Throws:
java.lang.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
public java.lang.String getPostJavaScript()
Description copied from interface:IJavaScriptPostActionThe JavaScript code to execute.- Specified by:
getPostJavaScriptin interfaceIJavaScriptPostAction
-
-