Package org.openxava.actions
Class ViewBaseAction
- java.lang.Object
-
- org.openxava.actions.BaseAction
-
- org.openxava.actions.ViewBaseAction
-
- All Implemented Interfaces:
IAction,IChangeModeAction,IModuleContextAction,IRequestAction
- Direct Known Subclasses:
AddColumnsAction,AttachedFileBaseAction,CancelAction,CancelDialogAction,CancelFromCustomListAction,ChooseIconAction,ChooseReferenceAction,CollectionElementViewBaseAction,ForwardToOriginalURIBaseAction,GenerateIdForPropertyBaseAction,GoAddColumnsAction,GoChooseIconAction,ImportAction,ImportDataAction,InitSignInAction,InitViewAction,JasperMultipleReportBaseAction,JasperReportBaseAction,LoadFileItemAction,LoadImageAction,NewAction,OnChangePropertyBaseAction,OpenSearchDialogAction,ReferenceBaseAction,RemoveFromAttachedFilesAction,RemoveIconAction,RemoveImageFromGalleryAction,ReportXLSAction,RestoreDefaultColumnsAction,ReturnAction,SaveCollectionTotalsAction,SearchByViewKeyAction,SearchDialogAction,SelectChartTypeAction,SetEditableAction,SetPropertyToNullAction,SetViewModelWithNewInstanceAction,ShareMyReportAction,SumCollectionColumnAction,TabBaseAction,UpdateReferenceBaseAction
public abstract class ViewBaseAction extends BaseAction
- Author:
- Javier Paniza
-
-
Field Summary
-
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT
-
-
Constructor Summary
Constructors Constructor Description ViewBaseAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringchangeThisPropertyByViewValue(java.lang.String condition)protected voidcloseDialog()protected java.lang.StringgetModelName()protected ViewgetPreviousView()java.util.Stack<View>getPreviousViews()ViewgetView()protected voidresetDescriptionsCache()Reset the cache of all descriptions-list and others uses of descriptionsEditors.protected voidreturnToPreviousView()protected voidsetControllers(java.lang.String... controllers)voidsetPreviousViews(java.util.Stack previousViews)voidsetView(View view)protected voidshowDialog()Creates a new view and shows it inside a dialog.protected voidshowDialog(View viewToShowInDialog)Shows the specified view inside a dialog.protected voidshowNewView()Creates a new view and shows it.protected voidshowView(View newView)Shows the specified view.protected voidvalidateViewValues()-
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
-
showNewView
protected void showNewView()
Creates a new view and shows it.After it if you call to getView() it will return this new view.
- Since:
- 4m1
-
showView
protected void showView(View newView)
Shows the specified view.After it if you call to getView() it will be the specified view.
- Since:
- 4m2
-
showDialog
protected void showDialog(View viewToShowInDialog) throws java.lang.Exception
Shows the specified view inside a dialog.After it if you call to getView() it will be the specified view.
- Throws:
java.lang.Exception- Since:
- 4m2
-
showDialog
protected void showDialog() throws java.lang.ExceptionCreates a new view and shows it inside a dialog.After it if you call to getView() it will return this new view.
- Throws:
java.lang.Exception- Since:
- 4m2
-
closeDialog
protected void closeDialog()
- Since:
- 4m2
-
returnToPreviousView
protected void returnToPreviousView()
- Since:
- 4m1
-
validateViewValues
protected void validateViewValues()
- Since:
- 5.6
-
getPreviousView
protected View getPreviousView()
- Since:
- 4m1
-
getView
public View getView()
-
setView
public void setView(View view)
-
getModelName
protected java.lang.String getModelName()
-
resetDescriptionsCache
protected void resetDescriptionsCache()
Reset the cache of all descriptions-list and others uses of descriptionsEditors.- Overrides:
resetDescriptionsCachein classBaseAction
-
getPreviousViews
public java.util.Stack<View> getPreviousViews()
-
setPreviousViews
public void setPreviousViews(java.util.Stack previousViews)
-
setControllers
protected void setControllers(java.lang.String... controllers)
- Overrides:
setControllersin classBaseAction
-
changeThisPropertyByViewValue
protected java.lang.String changeThisPropertyByViewValue(java.lang.String condition)
-
-