Class AbstractTextComponent<T>

    • Method Detail

      • getConvertEmptyInputStringToNull

        public final boolean getConvertEmptyInputStringToNull()
        Should the bound object become null when the input is empty?
        Returns:
        true when the value will be set to null when the input is empty.
      • isInputNullable

        public boolean isInputNullable()
        TextFields return an empty string even if the user didn't type anything in them. To be able to work nicely with validation, this method returns false.
        Overrides:
        isInputNullable in class FormComponent<T>
        Returns:
        True if this component's input can be null. Returns true by default.
        See Also:
        FormComponent.isInputNullable()
      • setConvertEmptyInputStringToNull

        public final FormComponent<T> setConvertEmptyInputStringToNull​(boolean flag)
        Should the bound object become null when the input is empty?
        Parameters:
        flag - the value to set this flag.
        Returns:
        this