Class NewAction

All Implemented Interfaces:
IAction, IChangeModeAction, IModelAction, IModuleContextAction, IRequestAction

public class NewAction extends ViewBaseAction implements IChangeModeAction, IModelAction
Author:
Javier Paniza, Chungyen Tsai
  • Constructor Details

    • NewAction

      public NewAction()
  • Method Details

    • execute

      public void execute() throws Exception
      Specified by:
      execute in interface IAction
      Throws:
      Exception
    • getNextMode

      public String getNextMode()
      Description copied from interface: IChangeModeAction
      LIST, DETAIL or PREVIOUS_MODE.
      Specified by:
      getNextMode in interface IChangeModeAction
      Overrides:
      getNextMode in class BaseAction
    • setModel

      public void setModel(String modelName)
      Specified by:
      setModel in interface IModelAction
    • isRestoreModel

      public boolean isRestoreModel()
    • setRestoreModel

      public void setRestoreModel(boolean restoreModel)
    • getDefaultValues

      public 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(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