Package org.openxava.actions
Class OnChangePropertyBaseAction
- java.lang.Object
-
- org.openxava.actions.BaseAction
-
- org.openxava.actions.ViewBaseAction
-
- org.openxava.actions.OnChangePropertyBaseAction
-
- All Implemented Interfaces:
IAction
,IChangeModeAction
,IModuleContextAction
,IOnChangePropertyAction
,IRequestAction
- Direct Known Subclasses:
OnChangeChartBaseAction
,OnChangeSearchAction
public abstract class OnChangePropertyBaseAction extends ViewBaseAction implements IOnChangePropertyAction
- Author:
- Javier Paniza
-
-
Field Summary
-
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT
-
-
Constructor Summary
Constructors Constructor Description OnChangePropertyBaseAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MetaProperty
getChangedMetaProperty()
java.lang.String
getChangedProperty()
java.lang.Object
getNewValue()
View
getView()
The view where the on-change is declared.void
setChangedProperty(java.lang.String string)
void
setNewValue(java.lang.Object object)
protected void
showView(View newView)
Shows the specified view.-
Methods inherited from class org.openxava.actions.ViewBaseAction
changeThisPropertyByViewValue, closeDialog, getModelName, getPreviousView, getPreviousViews, resetDescriptionsCache, returnToPreviousView, setControllers, setPreviousViews, setView, showDialog, showDialog, showNewView, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openxava.actions.IAction
execute, getErrors, getMessages, setEnvironment, setErrors, setMessages
-
Methods inherited from interface org.openxava.actions.IOnChangePropertyAction
setView
-
-
-
-
Method Detail
-
getNewValue
public java.lang.Object getNewValue()
-
getChangedProperty
public java.lang.String getChangedProperty()
-
getChangedMetaProperty
protected MetaProperty getChangedMetaProperty() throws XavaException
- Throws:
XavaException
-
getView
public View getView()
The view where the on-change is declared.This may be the main view or the module (if property-view : on-change is declared in main view) or an subview (if it's declared inside a aggregate view, for example).
- Overrides:
getView
in classViewBaseAction
- Returns:
-
setNewValue
public void setNewValue(java.lang.Object object)
- Specified by:
setNewValue
in interfaceIOnChangePropertyAction
-
setChangedProperty
public void setChangedProperty(java.lang.String string)
- Specified by:
setChangedProperty
in interfaceIOnChangePropertyAction
-
showView
protected void showView(View newView)
Description copied from class:ViewBaseAction
Shows the specified view.After it if you call to getView() it will be the specified view.
- Overrides:
showView
in classViewBaseAction
-
-