Class LongField.LongFieldI18n

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

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

    • LongFieldI18n

      public LongFieldI18n()
  • 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 Long.
      Specified by:
      getBadInputErrorMessage in interface com.vaadin.flow.component.textfield.AbstractNumberFieldI18n
      Returns:
      the error message or null if not set
    • setBadInputErrorMessage

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

      Note, custom error messages set with LongField.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 LongField.LongFieldI18n setRequiredErrorMessage(String errorMessage)
      Sets the error message to display when the field is required but empty.

      Note, custom error messages set with LongField.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 LongField.LongFieldI18n 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 LongField.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 LongField.LongFieldI18n 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 LongField.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 LongField.LongFieldI18n 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 LongField.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: