Interface FormInputFragment

    • Method Detail

      • setCustomValidators

        void setCustomValidators​(List<BasicFormLogicComponent> validators)
        Sets the List of custom validators for this FormFragment.
        Parameters:
        validators - the List of custom validators for this FormFragment
      • createValidator

        FragmentValidator createValidator​(FragmentValidatorDefinition validator)
        Creates a new validator for this FormFragment, based on the specified FragmentValidatorDefinition.
        Parameters:
        validator - the fragment validator definition to base the new FragmentValidator on.
        Returns:
        the new FragmentValidator
      • deleteValidator

        void deleteValidator​(FragmentValidator validator)
        Removes a FormFragmentValidator from this FormInputFragment.
        Parameters:
        validator - the validator that is to be deleted
      • setPrefilling

        void setPrefilling​(String prefilling)
        Sets the prefilling value for this FormInputFragment.
        Parameters:
        prefilling - the value to prefill in this FormInputFragment
      • setPrefillingExpression

        void setPrefillingExpression​(String prefillingExpression)
        Sets the JavaScript Expression that generates the prefilling value for this FormInputFragment.
        Parameters:
        prefillingExpression - the JavaScript expression
      • setHelpText

        void setHelpText​(String helpText)
        Sets the help text for this FormInputFragment.
        Parameters:
        helpText - the help text
      • setExtraText

        void setExtraText​(String extraText)
        Sets the extra text for this FormInputFragment.
        Parameters:
        extraText - the extra text for this FormInputFragment
      • isRequired

        boolean isRequired()
        Returns whether this is a required fragment (automatically adds a required validator).
        Returns:
        whether this is a required fragment
      • setRequired

        void setRequired​(boolean required)
        Sets whether this is a required fragment.
        Parameters:
        required - true if this fragment cannot be left empty