All Known Implementing Classes:
AbstractFormatingSuggestBox, AbstractFormatingTextBox, AbstractMinMaxTextBox, AbstractPhoneNumberSuggestBox, BicSuggestBox, CheckBox, ColorBox, CurrencyBigDecimalBox, CurrencyDoubleBox, DateBox, DateBoxLocalDate, DateTimeLocalBox, DateTimeLocalBoxLocalDateTime, DecimalBigDecimalBox, DecimalDoubleBox, DynamicInputWidget, EmailTextBox, IbanTextBox, IdAndNameSearchableListBox, IntegerBox, IntegerBoxWithoutSeparator, Isbn10TextBox, Isbn13TextBox, IsbnTextBox, LongBox, LongBoxWithoutSeparator, MonthBox, PasswordTextBox, PercentBigDecimalBox, PercentDoubleBox, PhoneNumberCommonInterSuggestBox, PhoneNumberCommonSuggestBox, PhoneNumberDin5008InterSuggestBox, PhoneNumberDin5008SuggestBox, PhoneNumberE123InterSuggestBox, PhoneNumberE123SuggestBox, PhoneNumberMsSuggestBox, PhoneNumberUriSuggestBox, PostalCodeTextBox, RadioButton, RangeBox, RegExCheckedTextBox, SearchTextBox, SortableIdAndNameSearchableListBox, SuggestBoxWithEditorErrors, TaxNumberTextBox, TextArea, TextBox, TextBoxBase, TextBoxWithFormating, TimeBox, TimeBoxLocalTime, TinTextBox, UrlTextBox, ValueBox, ValueBoxBaseWithEditorErrors, VatIdTextBox

public interface HasValidity
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns false if the element is a candidate for constraint validation, and it does not satisfy its constraints.
    A localized message that describes the validation constraints that the control does not satisfy (if any).
    elemental2.dom.ValidityState
    The validity states that this element is in.
  • Method Details

    • getValidationMessage

      String getValidationMessage()
      A localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints.
      Returns:
      localized validation message
    • getValidity

      elemental2.dom.ValidityState getValidity()
      The validity states that this element is in.
      Returns:
      ValidityState
    • checkValidity

      boolean checkValidity()
      Returns false if the element is a candidate for constraint validation, and it does not satisfy its constraints. In this case, it also fires an invalid event at the element. It returns true if the element is not a candidate for constraint validation, or if it satisfies its constraints.
      Returns:
      true if input is valid