org.openxava.actions
Class CollectionElementViewBaseAction

java.lang.Object
  extended by org.openxava.actions.BaseAction
      extended by org.openxava.actions.ViewBaseAction
          extended by org.openxava.actions.CollectionElementViewBaseAction
All Implemented Interfaces:
IAction, IChangeModeAction, IModuleContextAction, IRequestAction
Direct Known Subclasses:
CollectionBaseAction, CreateNewElementInCollectionAction, EditCustomReportColumnAction, EditElementInCollectionAction, GoAddElementsToCollectionAction, HideDetailElementInCollectionAction, NewTreeViewItemAction, RemoveElementFromCollectionAction, RemoveTreeViewNodeAction, SaveAndStayElementInCollectionAction, SaveCustomReportColumnAction, SaveElementInCollectionAction, SaveElementInManyToManyCollectionAction, TreeViewExpandCollapseAction, TreeViewMoveNodeAction, 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
CollectionElementViewBaseAction()
           
 
Method Summary
protected  void closeDialog()
           
abstract  void execute()
           
protected  View getCollectionElementView()
           
protected  View getParentView()
           
 View getView()
           
 java.lang.String getViewObject()
           
 boolean isCloseDialogDisallowed()
           
protected  boolean isEntityReferencesCollection()
           
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.
 
Methods inherited from class org.openxava.actions.ViewBaseAction
getModelName, getPreviousView, getPreviousViews, resetDescriptionsCache, returnToPreviousView, setControllers, setPreviousViews, setView, showDialog, showNewView, showView
 
Methods inherited from class org.openxava.actions.BaseAction
addActions, addError, addErrors, addInfo, addMessage, addMessages, addWarning, clearActions, executeAfter, executeBefore, getContext, getEnvironment, getErrors, getLocale, getManager, getMessages, getNextMode, getRequest, removeActions, returnToPreviousControllers, 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
 

Constructor Detail

CollectionElementViewBaseAction

public CollectionElementViewBaseAction()
Method Detail

execute

public abstract void execute()
                      throws java.lang.Exception
Throws:
java.lang.Exception

getView

public View getView()
Overrides:
getView in class ViewBaseAction

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 class ViewBaseAction
Throws:
java.lang.Exception

getParentView

protected View getParentView()
                      throws XavaException
Throws:
XavaException
Since:
4m5

getCollectionElementView

protected View getCollectionElementView()
                                 throws XavaException
Throws:
XavaException

isEntityReferencesCollection

protected boolean isEntityReferencesCollection()
                                        throws XavaException
Throws:
XavaException

getViewObject

public java.lang.String getViewObject()

setViewObject

public void setViewObject(java.lang.String viewObject)

closeDialog

protected void closeDialog()
Overrides:
closeDialog in class ViewBaseAction

setCloseDialogDisallowed

public void setCloseDialogDisallowed(boolean closeDialogDisallowed)

isCloseDialogDisallowed

public boolean isCloseDialogDisallowed()