Package org.openxava.actions
Class NewAction
- java.lang.Object
-
- org.openxava.actions.BaseAction
-
- org.openxava.actions.ViewBaseAction
-
- org.openxava.actions.NewAction
-
- All Implemented Interfaces:
IAction,IChangeModeAction,IModelAction,IModuleContextAction,IRequestAction
public class NewAction extends ViewBaseAction implements IChangeModeAction, IModelAction
- Author:
- Javier Paniza, Chungyen Tsai
-
-
Field Summary
-
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT
-
-
Constructor Summary
Constructors Constructor Description NewAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()java.lang.StringgetDefaultValues()A string with default values in string format.java.lang.StringgetNextMode()LIST, DETAIL or PREVIOUS_MODE.booleanisRestoreModel()voidsetDefaultValues(java.lang.String defaultValues)A string with default values in string format.voidsetModel(java.lang.String modelName)voidsetRestoreModel(boolean restoreModel)-
Methods inherited from class org.openxava.actions.ViewBaseAction
changeThisPropertyByViewValue, closeDialog, getModelName, getPreviousView, getPreviousViews, getView, resetDescriptionsCache, returnToPreviousView, setControllers, setPreviousViews, setView, showDialog, showDialog, showNewView, showView, 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, 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
getErrors, getMessages, setEnvironment, setErrors, setMessages
-
-
-
-
Method Detail
-
execute
public void execute() throws java.lang.Exception
-
getNextMode
public java.lang.String getNextMode()
Description copied from interface:IChangeModeActionLIST, DETAIL or PREVIOUS_MODE.- Specified by:
getNextModein interfaceIChangeModeAction- Overrides:
getNextModein classBaseAction
-
setModel
public void setModel(java.lang.String modelName)
- Specified by:
setModelin interfaceIModelAction
-
isRestoreModel
public boolean isRestoreModel()
-
setRestoreModel
public void setRestoreModel(boolean restoreModel)
-
getDefaultValues
public java.lang.String getDefaultValues()
A string with default values in string format.
We use : to separate key from value and ; to separate entries, thus:name:John;date:2/2/2034
- Since:
- 7.1
-
setDefaultValues
public void setDefaultValues(java.lang.String defaultValues)
A string with default values in string format.
We use : to separate key from value and ; to separate entries, thus:name:John;date:2/2/2034
- Since:
- 7.1
-
-