Class EditShortcutStepHandler

    • Constructor Detail

      • EditShortcutStepHandler

        public EditShortcutStepHandler()
    • Method Detail

      • getFormStepCount

        public int getFormStepCount()
        Description copied from class: JcmsFormHandler
        Retrieve the total number of steps used for edition when invoking this form handler.

        The default implementation of this method is to return 1, corresponding to one step (which means only 1 screen being displayed).

        You can provide a custom FormHandler to override this behavior.

        See jcore/doSteps.jspf for use of this method.

        Overrides:
        getFormStepCount in class JcmsFormHandler
        Returns:
        the total number of steps in this formhandler
      • showFinishButton

        public boolean showFinishButton()
        Description copied from class: JcmsFormHandler
        Check if the "Finish" button should be displayed in step modal form.

        The default implementation of this method is to return true if the current step (as returned by JcmsFormHandler.getFormStep() is the last one (as compared with JcmsFormHandler.getFormStepCount().

        You can provide a custom FormHandler to override this behavior.

        See jcore/doStepButtons.jspf for use of this method.

        Overrides:
        showFinishButton in class JcmsFormHandler
        Returns:
        true to display the "Finish" button, false to hide it
      • showPreviousButton

        public boolean showPreviousButton()
        Description copied from class: JcmsFormHandler
        Check if the "Previous" button should be displayed in step modal form.

        The default implementation of this method is to return true if the current step (as returned by JcmsFormHandler.getFormStep() is higher than 0.

        You can provide a custom FormHandler to override this behavior.

        See jcore/doStepButtons.jspf for use of this method.

        Overrides:
        showPreviousButton in class JcmsFormHandler
        Returns:
        true to display the "Previous" button, false to hide it
      • showNextButton

        public boolean showNextButton()
        Description copied from class: JcmsFormHandler
        Check if the "Next" button should be displayed in step modal form.

        The default implementation of this method is to return true unless the finish button is being displayed by method JcmsFormHandler.showFinishButton().

        You can provide a custom FormHandler to override this behavior.

        See jcore/doStepButtons.jspf for use of this method.

        Overrides:
        showNextButton in class JcmsFormHandler
        Returns:
        true to display the "Next" button, false to hide it
      • validateFinish

        protected boolean validateFinish()
                                  throws java.io.IOException
        Overrides:
        validateFinish in class generated.EditShortcutHandler
        Throws:
        java.io.IOException
      • validateNext

        protected boolean validateNext()
                                throws java.io.IOException
        Overrides:
        validateNext in class generated.EditShortcutHandler
        Throws:
        java.io.IOException
      • getLinkType

        public java.lang.String getLinkType()
      • setLinkType

        public void setLinkType​(java.lang.String linkType)