Class AbstractFormatingSuggestBox

  • 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, HasFormating, 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:
    AbstractPhoneNumberSuggestBox

    public abstract class AbstractFormatingSuggestBox
    extends SuggestBoxWithEditorErrors
    implements HasFormating
    • Constructor Detail

      • AbstractFormatingSuggestBox

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

        protected AbstractFormatingSuggestBox​(com.google.gwt.user.client.ui.SuggestOracle poracle,
                                              ValueBoxBaseWithEditorErrors<String> pbox)
        Constructor for SuggestBox. Creates a TextBox to use with this SuggestBox.
        Parameters:
        poracle - the oracle for this SuggestBox
        pbox - value box used for input
    • Method Detail

      • onBrowserEvent

        public void onBrowserEvent​(com.google.gwt.user.client.Event pevent)
        Specified by:
        onBrowserEvent in interface com.google.gwt.user.client.EventListener
        Overrides:
        onBrowserEvent in class com.google.gwt.user.client.ui.Composite
      • reformatValue

        public void reformatValue​(boolean fireEvents)
        Description copied from interface: HasFormating
        reformat value from widget.
        Specified by:
        reformatValue in interface HasFormating
        Parameters:
        fireEvents - when true and value changes, a ValueChangeEvent is triggered
      • formatValue

        public void formatValue​(de.knightsoftnet.validators.shared.data.ValueWithPos<String> pvalue)
        Description copied from interface: HasFormating
        format and set value.
        Specified by:
        formatValue in interface HasFormating
        Parameters:
        pvalue - value to format
      • setTextWithPos

        protected void setTextWithPos​(de.knightsoftnet.validators.shared.data.ValueWithPos<String> formatedEntry,
                                      boolean fireEvents)