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
- Author:
- Javier Paniza, Chungyen Tsai
-
Field Summary
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()A string with default values in string format.LIST, DETAIL or PREVIOUS_MODE.booleanvoidsetDefaultValues(String defaultValues) A string with default values in string format.voidvoidsetRestoreModel(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, validateViewValuesMethods 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, setRequestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openxava.actions.IAction
getErrors, getMessages, setEnvironment, setErrors, setMessages
-
Constructor Details
-
NewAction
public NewAction()
-
-
Method Details
-
execute
-
getNextMode
Description copied from interface:IChangeModeActionLIST, DETAIL or PREVIOUS_MODE.- Specified by:
getNextModein interfaceIChangeModeAction- Overrides:
getNextModein classBaseAction
-
setModel
- Specified by:
setModelin interfaceIModelAction
-
isRestoreModel
public boolean isRestoreModel() -
setRestoreModel
public void setRestoreModel(boolean restoreModel) -
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
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
-