Class AbstractFormatingSuggestBox

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
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
abstract suggest box which formats input when typing.
  • Constructor Details

    • AbstractFormatingSuggestBox

      protected AbstractFormatingSuggestBox(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
    • AbstractFormatingSuggestBox

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

    • onBrowserEvent

      public void onBrowserEvent(com.google.gwt.user.client.Event event)
      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()
      Description copied from interface: HasFormating
      reformat value from widget.
      Specified by:
      reformatValue in interface HasFormating
    • 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> value)
      Description copied from interface: HasFormating
      format and set value.
      Specified by:
      formatValue in interface HasFormating
      Parameters:
      value - value to format
    • setTextWithPos

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