Interface HasValidationMessageElement<T,E extends org.gwtproject.editor.client.Editor<T>>

Type Parameters:
T - the type of the values to edit
E - the type of Editor the view object will provide
All Superinterfaces:
org.gwtproject.editor.client.Editor<T>, org.gwtproject.editor.client.HasEditorErrors<T>, org.gwtproject.editor.client.IsEditor<E>
All Known Implementing Classes:
AbstractFormatingSuggestBox, AbstractFormatingTextBox, AbstractListEditor, AbstractMinMaxTextBox, AbstractPhoneNumberSuggestBox, BicSuggestBox, CheckBox, ColorBox, CountryListBox, CurrencyBigDecimalBox, CurrencyDoubleBox, DateBox, DateBoxLocalDate, DateTimeLocalBox, DateTimeLocalBoxLocalDateTime, DecimalBigDecimalBox, DecimalDoubleBox, DynamicInputWidget, EmailTextBox, FieldTypeListBox, IbanTextBox, IdAndNameListBox, IdAndNameSearchableListBox, IntegerBox, IntegerBoxWithoutSeparator, Isbn10TextBox, Isbn13TextBox, IsbnTextBox, LongBox, LongBoxWithoutSeparator, MonthBox, PageNumberListBox, PasswordTextBox, PercentBigDecimalBox, PercentDoubleBox, PhoneNumberCommonInterSuggestBox, PhoneNumberCommonSuggestBox, PhoneNumberDin5008InterSuggestBox, PhoneNumberDin5008SuggestBox, PhoneNumberE123InterSuggestBox, PhoneNumberE123SuggestBox, PhoneNumberMsSuggestBox, PhoneNumberUriSuggestBox, PostalCodeTextBox, RadioButton, RangeBox, RatingInputWidget, RegExCheckedTextBox, SearchTextBox, SelectBoxWithIconInputWidget, SortableIdAndNameListBox, SortableIdAndNameRadioButton, SortableIdAndNameSearchableListBox, SuggestBoxWithEditorErrors, TaxNumberTextBox, TextArea, TextBox, TextBoxBase, TextBoxWithFormating, TimeBox, TimeBoxLocalTime, TinTextBox, UiLanguageListBox, UrlTextBox, ValueBox, ValueBoxBaseWithEditorErrors, VatIdTextBox

public interface HasValidationMessageElement<T,E extends org.gwtproject.editor.client.Editor<T>> extends org.gwtproject.editor.client.HasEditorErrors<T>, org.gwtproject.editor.client.IsEditor<E>
interface for widgets which can delegate validation messages to another dom element.
Author:
Manfred Tremmel
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.gwtproject.editor.client.Editor

    org.gwtproject.editor.client.Editor.Ignore, org.gwtproject.editor.client.Editor.Path
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    editorErrorMatches(org.gwtproject.editor.client.EditorError error)
    Checks if a error belongs to this widget.
    com.google.gwt.user.client.ui.HTMLPanel
    get validation message element.
    void
    set custom validity value.
    void
    set title of element.
    void
    setValidationMessageElement(com.google.gwt.user.client.ui.HTMLPanel element)
    set validation message element.
    default void
    showErrors(List<org.gwtproject.editor.client.EditorError> errors)
     
    default void
    showErrors(Set<String> messages)
    show error messages.

    Methods inherited from interface org.gwtproject.editor.client.IsEditor

    asEditor
  • Method Details

    • setValidationMessageElement

      void setValidationMessageElement(com.google.gwt.user.client.ui.HTMLPanel element)
      set validation message element.
      Parameters:
      element - element to set
    • getValidationMessageElement

      com.google.gwt.user.client.ui.HTMLPanel getValidationMessageElement()
      get validation message element.
      Returns:
      element or null if non is set
    • setCustomValidity

      void setCustomValidity(String message)
      set custom validity value.
      Parameters:
      message - message to show
    • setTitle

      void setTitle(String title)
      set title of element.
      Parameters:
      title - title to set
    • showErrors

      default void showErrors(List<org.gwtproject.editor.client.EditorError> errors)
      Specified by:
      showErrors in interface org.gwtproject.editor.client.HasEditorErrors<T>
    • showErrors

      default void showErrors(Set<String> messages)
      show error messages.
      Parameters:
      messages - set of messages
    • editorErrorMatches

      default boolean editorErrorMatches(org.gwtproject.editor.client.EditorError error)
      Checks if a error belongs to this widget.
      Parameters:
      error - editor error to check
      Returns:
      true if the error belongs to this widget