Class CollectionElementViewBaseAction
java.lang.Object
org.openxava.actions.BaseAction
org.openxava.actions.ViewBaseAction
org.openxava.actions.CollectionElementViewBaseAction
- All Implemented Interfaces:
IAction, IChangeModeAction, IModuleContextAction, IRequestAction
- Direct Known Subclasses:
CollectionBaseAction, CreateNewElementInCollectionAction, EditElementInCollectionAction, EditMyReportColumnAction, GoAddElementsToCollectionAction, HideDetailElementInCollectionAction, NewTreeViewItemAction, OnChangeElementCollectionBaseAction, OpenCollectionElementInNewTabAction, RemoveElementFromCollectionAction, RemoveTreeViewNodeAction, SaveAndStayElementInCollectionAction, SaveElementInCollectionAction, SaveElementInManyToManyCollectionAction, SaveMyReportColumnAction, UpdateElementInManyToManyCollectionAction
- Author:
- Javier Paniza
-
Field Summary
Fields inherited from interface IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidabstract voidexecute()protected Viewprotected Stringprotected MetaCollectionprotected MetaCollectionViewprotected ViewgetView()booleanprotected booleanprotected booleanprotected booleanvoidsetCloseDialogDisallowed(boolean closeDialogDisallowed) voidsetViewObject(String viewObject) protected voidshowDialog(View viewToShowInDialog) Shows the specified view inside a dialog.protected voidvalidateMaximum(int elementsToAdd) protected voidvalidateMinimum(int elementsToRemove) Methods inherited from class ViewBaseAction
changeThisPropertyByViewValue, getModelName, getPreviousView, getPreviousViews, resetDescriptionsCache, returnToPreviousView, setControllers, setPreviousViews, setView, showDialog, showNewView, showView, validateViewValuesMethods inherited from class 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
-
Constructor Details
-
CollectionElementViewBaseAction
public CollectionElementViewBaseAction()
-
-
Method Details
-
execute
-
getView
- Overrides:
getViewin classViewBaseAction
-
mustRefreshCollection
protected boolean mustRefreshCollection() -
showDialog
Description copied from class:ViewBaseActionShows the specified view inside a dialog.After it if you call to getView() it will be the specified view.
- Overrides:
showDialogin classViewBaseAction- Throws:
Exception
-
getParentView
- Throws:
XavaException- Since:
- 4m5
-
getCollectionElementView
- Throws:
XavaException
-
getMetaCollection
-
validateMinimum
- Throws:
ValidationExceptionXavaException
-
validateMaximum
- Throws:
ValidationExceptionXavaException
-
isEntityReferencesCollection
- Throws:
XavaException
-
isEntityReferencesCollection
- Throws:
XavaException- Since:
- 6.2.1
-
getViewObject
-
setViewObject
-
closeDialog
protected void closeDialog()- Overrides:
closeDialogin classViewBaseAction
-
setCloseDialogDisallowed
public void setCloseDialogDisallowed(boolean closeDialogDisallowed) -
isCloseDialogDisallowed
public boolean isCloseDialogDisallowed() -
getMetaCollectionView
- Since:
- 7.7
-
getCollectionLabel
- Since:
- 7.6.3
-