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,ReleaseChartAction,RemoveFromAttachedFilesAction,RemoveIconAction,RemoveImageFromGalleryAction,ReportXLSAction,RestoreDefaultColumnsAction,ReturnAction,SaveCollectionTotalsAction,SearchByViewKeyAction,SearchDialogAction,SelectChartTypeAction,SetEditableAction,SetPropertyToNullAction,SetViewModelWithNewInstanceAction,ShareMyReportAction,SumCollectionColumnAction,TabBaseAction,UpdateReferenceBaseAction
- Author:
- Javier Paniza
-
Field Summary
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringchangeThisPropertyByViewValue(String condition) protected voidprotected Stringprotected ViewgetView()protected voidReset the cache of all descriptions-list and others uses of descriptionsEditors.protected voidprotected voidsetControllers(String... controllers) voidsetPreviousViews(Stack previousViews) voidprotected voidCreates a new view and shows it inside a dialog.protected voidshowDialog(View viewToShowInDialog) Shows the specified view inside a dialog.protected voidCreates a new view and shows it.protected voidShows the specified view.protected voidMethods 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
-
Constructor Details
-
ViewBaseAction
public ViewBaseAction()
-
-
Method Details
-
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
Shows the specified view.After it if you call to getView() it will be the specified view.
- Since:
- 4m2
-
showDialog
Shows the specified view inside a dialog.After it if you call to getView() it will be the specified view.
- Throws:
Exception- Since:
- 4m2
-
showDialog
Creates a new view and shows it inside a dialog.After it if you call to getView() it will return this new view.
- Throws:
Exception- Since:
- 4m2
-
closeDialog
protected void closeDialog()- Since:
- 4m2
-
returnToPreviousView
protected void returnToPreviousView()- Since:
- 4m1
-
validateViewValues
protected void validateViewValues()- Since:
- 5.6
-
getPreviousView
- Since:
- 4m1
-
getView
-
setView
-
getModelName
-
resetDescriptionsCache
protected void resetDescriptionsCache()Reset the cache of all descriptions-list and others uses of descriptionsEditors.- Overrides:
resetDescriptionsCachein classBaseAction
-
getPreviousViews
-
setPreviousViews
-
setControllers
- Overrides:
setControllersin classBaseAction
-
changeThisPropertyByViewValue
-