Class ShortField.ShortFieldI18n

java.lang.Object
org.vaadin.firitin.fields.ShortField.ShortFieldI18n
All Implemented Interfaces:
com.vaadin.flow.component.textfield.AbstractNumberFieldI18n, Serializable
Enclosing class:
ShortField

public static class ShortField.ShortFieldI18n extends Object implements com.vaadin.flow.component.textfield.AbstractNumberFieldI18n
The internationalization properties for ShortField.
Author:
Vaadin Ltd.
See Also:
  • Constructor Details

    • ShortFieldI18n

      public ShortFieldI18n()
  • Method Details

    • getBadInputErrorMessage

      public String getBadInputErrorMessage()
      Gets the error message displayed when the field contains user input that the server is unable to convert to type Short.
      Specified by:
      getBadInputErrorMessage in interface com.vaadin.flow.component.textfield.AbstractNumberFieldI18n
      Returns:
      the error message or null if not set
    • setBadInputErrorMessage

      public ShortField.ShortFieldI18n setBadInputErrorMessage(String errorMessage)
      Sets the error message to display when the field contains user input that the server is unable to convert to type Short.

      Note, custom error messages set with ShortField.setErrorMessage(String) take priority over i18n error messages.

      Parameters:
      errorMessage - the error message to set, or null to clear
      Returns:
      this instance for method chaining
    • getRequiredErrorMessage

      public String getRequiredErrorMessage()
      Gets the error message displayed when the field is required but empty.
      Specified by:
      getRequiredErrorMessage in interface com.vaadin.flow.component.textfield.AbstractNumberFieldI18n
      Returns:
      the error message or null if not set
      See Also:
      • TextFieldBase.isRequired()
      • TextFieldBase.setRequired(boolean)
    • setRequiredErrorMessage

      public ShortField.ShortFieldI18n setRequiredErrorMessage(String errorMessage)
      Sets the error message to display when the field is required but empty.

      Note, custom error messages set with ShortField.setErrorMessage(String) take priority over i18n error messages.

      Parameters:
      errorMessage - the error message to set, or null to clear
      Returns:
      this instance for method chaining
      See Also:
      • TextFieldBase.isRequired()
      • TextFieldBase.setRequired(boolean)
    • getMinErrorMessage

      public String getMinErrorMessage()
      Gets the error message displayed when the field value is smaller than the minimum allowed value.
      Specified by:
      getMinErrorMessage in interface com.vaadin.flow.component.textfield.AbstractNumberFieldI18n
      Returns:
      the error message or null if not set
      See Also:
    • setMinErrorMessage

      public ShortField.ShortFieldI18n setMinErrorMessage(String errorMessage)
      Sets the error message to display when the field value is smaller than the minimum allowed value.

      Note, custom error messages set with ShortField.setErrorMessage(String) take priority over i18n error messages.

      Parameters:
      errorMessage - the error message to set, or null to clear
      Returns:
      this instance for method chaining
      See Also:
    • getMaxErrorMessage

      public String getMaxErrorMessage()
      Gets the error message displayed when the field value is greater than the maximum allowed value.
      Specified by:
      getMaxErrorMessage in interface com.vaadin.flow.component.textfield.AbstractNumberFieldI18n
      Returns:
      the error message or null if not set
      See Also:
    • setMaxErrorMessage

      public ShortField.ShortFieldI18n setMaxErrorMessage(String errorMessage)
      Sets the error message to display when the field value is greater than the maximum allowed value.

      Note, custom error messages set with ShortField.setErrorMessage(String) take priority over i18n error messages.

      Parameters:
      errorMessage - the error message to set, or null to clear
      Returns:
      this instance for method chaining
      See Also:
    • getStepErrorMessage

      public String getStepErrorMessage()
      Gets the error message displayed when the field value is not a multiple of the step value.
      Specified by:
      getStepErrorMessage in interface com.vaadin.flow.component.textfield.AbstractNumberFieldI18n
      Returns:
      the error message or null if not set
      See Also:
    • setStepErrorMessage

      public ShortField.ShortFieldI18n setStepErrorMessage(String errorMessage)
      Sets the error message to display when the field value is not a multiple of the step value.

      Note, custom error messages set with ShortField.setErrorMessage(String) take priority over i18n error messages.

      Parameters:
      errorMessage - the error message to set, or null to clear
      Returns:
      this instance for method chaining
      See Also: