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 void
closeDialog()
abstract void
execute()
protected View
getCollectionElementView()
protected MetaCollection
getMetaCollection()
protected View
getParentView()
View
getView()
java.lang.String
getViewObject()
boolean
isCloseDialogDisallowed()
protected boolean
isEntityReferencesCollection()
protected boolean
isEntityReferencesCollection(View view)
protected boolean
mustRefreshCollection()
void
setCloseDialogDisallowed(boolean closeDialogDisallowed)
void
setViewObject(java.lang.String viewObject)
protected void
showDialog(View viewToShowInDialog)
Shows the specified view inside a dialog.protected void
validateMaximum(int elementsToAdd)
protected void
validateMinimum(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:
getView
in classViewBaseAction
-
mustRefreshCollection
protected boolean mustRefreshCollection()
-
showDialog
protected void showDialog(View viewToShowInDialog) throws java.lang.Exception
Description copied from class:ViewBaseAction
Shows the specified view inside a dialog.After it if you call to getView() it will be the specified view.
- Overrides:
showDialog
in 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:
ValidationException
XavaException
-
validateMaximum
protected void validateMaximum(int elementsToAdd) throws ValidationException, XavaException
- Throws:
ValidationException
XavaException
-
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:
closeDialog
in classViewBaseAction
-
setCloseDialogDisallowed
public void setCloseDialogDisallowed(boolean closeDialogDisallowed)
-
isCloseDialogDisallowed
public boolean isCloseDialogDisallowed()
-
-