Interface HasValidationMessageElement<T,E extends org.gwtproject.editor.client.Editor<T>>
- Type Parameters:
T- the type of the values to editE- 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 TypeMethodDescriptiondefault booleaneditorErrorMatches(org.gwtproject.editor.client.EditorError error) Checks if a error belongs to this widget.com.google.gwt.user.client.ui.HTMLPanelget validation message element.voidsetCustomValidity(String message) set custom validity value.voidset title of element.voidsetValidationMessageElement(com.google.gwt.user.client.ui.HTMLPanel element) set validation message element.default voidshowErrors(List<org.gwtproject.editor.client.EditorError> errors) default voidshowErrors(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
set custom validity value.- Parameters:
message- message to show
-
setTitle
set title of element.- Parameters:
title- title to set
-
showErrors
- Specified by:
showErrorsin interfaceorg.gwtproject.editor.client.HasEditorErrors<T>
-
showErrors
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
-