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 void
execute()
java.lang.String
getDefaultValues()
A string with default values in string format.java.lang.String
getNextMode()
LIST, DETAIL or PREVIOUS_MODE.boolean
isRestoreModel()
void
setDefaultValues(java.lang.String defaultValues)
A string with default values in string format.void
setModel(java.lang.String modelName)
void
setRestoreModel(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:IChangeModeAction
LIST, DETAIL or PREVIOUS_MODE.- Specified by:
getNextMode
in interfaceIChangeModeAction
- Overrides:
getNextMode
in classBaseAction
-
setModel
public void setModel(java.lang.String modelName)
- Specified by:
setModel
in 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
-
-