Class SuggestBoxWithEditorErrors

  • All Implemented Interfaces:
    com.google.gwt.event.dom.client.HasAllKeyHandlers, com.google.gwt.event.dom.client.HasBlurHandlers, com.google.gwt.event.dom.client.HasFocusHandlers, com.google.gwt.event.dom.client.HasKeyDownHandlers, com.google.gwt.event.dom.client.HasKeyPressHandlers, com.google.gwt.event.dom.client.HasKeyUpHandlers, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasSelectionHandlers<com.google.gwt.user.client.ui.SuggestOracle.Suggestion>, com.google.gwt.event.logical.shared.HasValueChangeHandlers<String>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.TakesValue<String>, com.google.gwt.user.client.ui.Focusable, com.google.gwt.user.client.ui.HasAnimation, com.google.gwt.user.client.ui.HasEnabled, com.google.gwt.user.client.ui.HasText, com.google.gwt.user.client.ui.HasValue<String>, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, HasAutocomplete, HasAutofocus, HasPlaceholder, HasRequired, HasValidationMessageElement<String,​org.gwtproject.editor.client.LeafValueEditor<String>>, HasValidity, org.gwtproject.editor.client.Editor<String>, org.gwtproject.editor.client.HasEditorErrors<String>, org.gwtproject.editor.client.IsEditor<org.gwtproject.editor.client.LeafValueEditor<String>>, org.gwtproject.editor.client.TakesValue<String>
    Direct Known Subclasses:
    AbstractFormatingSuggestBox, BicSuggestBox

    public class SuggestBoxWithEditorErrors
    extends SuggestBoxNewEditor
    implements com.google.gwt.event.dom.client.HasFocusHandlers, com.google.gwt.event.dom.client.HasBlurHandlers, HasValidationMessageElement<String,​org.gwtproject.editor.client.LeafValueEditor<String>>, HasRequired, HasValidity, HasAutofocus, HasPlaceholder, HasAutocomplete
    • Constructor Detail

      • SuggestBoxWithEditorErrors

        public SuggestBoxWithEditorErrors()
        Constructor for SuggestBox. Creates a MultiWordSuggestOracle and TextBox to use with this SuggestBox.
      • SuggestBoxWithEditorErrors

        public SuggestBoxWithEditorErrors​(com.google.gwt.user.client.ui.SuggestOracle oracle)
        Constructor for SuggestBox. Creates a TextBox to use with this SuggestBox.
        Parameters:
        oracle - the oracle for this SuggestBox
      • SuggestBoxWithEditorErrors

        public SuggestBoxWithEditorErrors​(com.google.gwt.user.client.ui.SuggestOracle oracle,
                                          ValueBoxBaseWithEditorErrors<String> box)
        Constructor for SuggestBox. The text box will be removed from it's current location and wrapped by the SuggestBox.
        Parameters:
        oracle - supplies suggestions based upon the current contents of the text widget
        box - the text widget
      • SuggestBoxWithEditorErrors

        public SuggestBoxWithEditorErrors​(com.google.gwt.user.client.ui.SuggestOracle oracle,
                                          ValueBoxBaseWithEditorErrors<String> box,
                                          AbstractSuggestBoxNewEditor.SuggestionDisplay suggestDisplay)
        Constructor for SuggestBox. The text box will be removed from it's current location and wrapped by the SuggestBox.
        Parameters:
        oracle - supplies suggestions based upon the current contents of the text widget
        box - the text widget
        suggestDisplay - the class used to display suggestions
    • Method Detail

      • addBlurHandler

        public com.google.gwt.event.shared.HandlerRegistration addBlurHandler​(com.google.gwt.event.dom.client.BlurHandler phandler)
        Specified by:
        addBlurHandler in interface com.google.gwt.event.dom.client.HasBlurHandlers
      • addFocusHandler

        public com.google.gwt.event.shared.HandlerRegistration addFocusHandler​(com.google.gwt.event.dom.client.FocusHandler phandler)
        Specified by:
        addFocusHandler in interface com.google.gwt.event.dom.client.HasFocusHandlers
      • getValidationMessage

        public String getValidationMessage()
        Description copied from interface: HasValidity
        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.
        Specified by:
        getValidationMessage in interface HasValidity
        Returns:
        localized validation message
      • getValidity

        public elemental2.dom.ValidityState getValidity()
        Description copied from interface: HasValidity
        The validity states that this element is in.
        Specified by:
        getValidity in interface HasValidity
        Returns:
        ValidityState
      • checkValidity

        public boolean checkValidity()
        Description copied from interface: HasValidity
        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.
        Specified by:
        checkValidity in interface HasValidity
        Returns:
        true if input is valid
      • isRequired

        public boolean isRequired()
        Description copied from interface: HasRequired
        Reflects the required HTML attribute, indicating that the user must fill in a value before submitting a form.
        Specified by:
        isRequired in interface HasRequired
        Returns:
        required true/false
      • setRequired

        public void setRequired​(boolean arg)
        Description copied from interface: HasRequired
        Reflects the required HTML attribute, indicating that the user must fill in a value before submitting a form.
        Specified by:
        setRequired in interface HasRequired
        Parameters:
        arg - required true/false
      • isAutofocus

        public boolean isAutofocus()
        Description copied from interface: HasAutofocus
        get autofocus value.
        Specified by:
        isAutofocus in interface HasAutofocus
        Returns:
        true if input field has autofocus
      • setAutofocus

        public void setAutofocus​(boolean arg)
        Description copied from interface: HasAutofocus
        set autofocus value.
        Specified by:
        setAutofocus in interface HasAutofocus
        Parameters:
        arg - true if input field has autofocus
      • setPlaceholder

        public void setPlaceholder​(String placeholder)
        Description copied from interface: HasPlaceholder
        set place holder text.
        Specified by:
        setPlaceholder in interface HasPlaceholder
        Parameters:
        placeholder - place holder text displayed when value is empty
      • setAutocomplete

        public void setAutocomplete​(String arg)
        Description copied from interface: HasAutocomplete
        set autocomplete attribute value.
        Specified by:
        setAutocomplete in interface HasAutocomplete
        Parameters:
        arg - input field autocomplete attribute value to set