org.openxava.actions
Class OnChangePropertyBaseAction

java.lang.Object
  extended by org.openxava.actions.BaseAction
      extended by org.openxava.actions.OnChangePropertyBaseAction
All Implemented Interfaces:
IAction, IChangeModeAction, IModuleContextAction, IOnChangePropertyAction, IRequestAction
Direct Known Subclasses:
OnChangeSearchAction

public abstract class OnChangePropertyBaseAction
extends BaseAction
implements IOnChangePropertyAction

Author:
Javier Paniza

Field Summary
 
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT
 
Constructor Summary
OnChangePropertyBaseAction()
           
 
Method Summary
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)
           
 void setView(View view)
           
 
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, resetDescriptionsCache, returnToPreviousControllers, setContext, setControllers, 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
 

Constructor Detail

OnChangePropertyBaseAction

public OnChangePropertyBaseAction()
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).

Returns:

setNewValue

public void setNewValue(java.lang.Object object)
Specified by:
setNewValue in interface IOnChangePropertyAction

setChangedProperty

public void setChangedProperty(java.lang.String string)
Specified by:
setChangedProperty in interface IOnChangePropertyAction

setView

public void setView(View view)
Specified by:
setView in interface IOnChangePropertyAction