Package org.openxava.actions
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
public abstract class CollectionElementViewBaseAction extends ViewBaseAction
- Author:
- Javier Paniza
-
-
Field Summary
-
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT
-
-
Constructor Summary
Constructors Constructor Description CollectionElementViewBaseAction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcloseDialog()abstract voidexecute()protected ViewgetCollectionElementView()protected java.lang.StringgetCollectionLabel()protected MetaCollectiongetMetaCollection()protected ViewgetParentView()ViewgetView()java.lang.StringgetViewObject()booleanisCloseDialogDisallowed()protected booleanisEntityReferencesCollection()protected booleanisEntityReferencesCollection(View view)protected booleanmustRefreshCollection()voidsetCloseDialogDisallowed(boolean closeDialogDisallowed)voidsetViewObject(java.lang.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 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
-
execute
public abstract void execute() throws java.lang.Exception- Throws:
java.lang.Exception
-
getView
public View getView()
- Overrides:
getViewin classViewBaseAction
-
mustRefreshCollection
protected boolean mustRefreshCollection()
-
showDialog
protected void showDialog(View viewToShowInDialog) throws java.lang.Exception
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:
java.lang.Exception
-
getParentView
protected View getParentView() throws XavaException
- Throws:
XavaException- Since:
- 4m5
-
getCollectionElementView
protected View getCollectionElementView() throws XavaException
- Throws:
XavaException
-
getMetaCollection
protected MetaCollection getMetaCollection() throws ElementNotFoundException, XavaException
-
validateMinimum
protected void validateMinimum(int elementsToRemove) throws ValidationException, XavaException- Throws:
ValidationExceptionXavaException
-
validateMaximum
protected void validateMaximum(int elementsToAdd) throws ValidationException, XavaException- Throws:
ValidationExceptionXavaException
-
isEntityReferencesCollection
protected boolean isEntityReferencesCollection() throws XavaException- Throws:
XavaException
-
isEntityReferencesCollection
protected boolean isEntityReferencesCollection(View view) throws XavaException
- Throws:
XavaException- Since:
- 6.2.1
-
getViewObject
public java.lang.String getViewObject()
-
setViewObject
public void setViewObject(java.lang.String viewObject)
-
closeDialog
protected void closeDialog()
- Overrides:
closeDialogin classViewBaseAction
-
setCloseDialogDisallowed
public void setCloseDialogDisallowed(boolean closeDialogDisallowed)
-
isCloseDialogDisallowed
public boolean isCloseDialogDisallowed()
-
getCollectionLabel
protected java.lang.String getCollectionLabel()
- Since:
- 7.6.3
-
-