Class AbstractPhoneNumberSuggestBox

java.lang.Object
com.google.gwt.user.client.ui.UIObject
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:
PhoneNumberCommonInterSuggestBox, PhoneNumberCommonSuggestBox, PhoneNumberDin5008InterSuggestBox, PhoneNumberDin5008SuggestBox, PhoneNumberE123InterSuggestBox, PhoneNumberE123SuggestBox, PhoneNumberMsSuggestBox, PhoneNumberUriSuggestBox

public abstract class AbstractPhoneNumberSuggestBox extends AbstractFormatingSuggestBox
phone number common international suggest widget.
Author:
Manfred Tremmel
  • Field Details

    • phoneNumberUtil

      protected final PhoneNumberUtil phoneNumberUtil
    • countryCodeField

      protected com.google.gwt.user.client.TakesValue<?> countryCodeField
  • Constructor Details

    • AbstractPhoneNumberSuggestBox

      protected AbstractPhoneNumberSuggestBox(com.google.gwt.user.client.ui.SuggestOracle poracle)
      default constructor.
      Parameters:
      poracle - suggest oracle to use
  • Method Details

    • setCountryCodeReferenceField

      public final void setCountryCodeReferenceField(com.google.gwt.user.client.TakesValue<?> pcountryCodeField)
      set reference to a field which contains the country code.
      Parameters:
      pcountryCodeField - field which contains the country code
    • isAllowedCharacter

      public boolean isAllowedCharacter(char pcharacter)
      Description copied from interface: HasFormating
      check a character if it's allowed input value.
      Parameters:
      pcharacter - character to check
      Returns:
      true if character is allowed
    • isCharacterToReplace

      public boolean isCharacterToReplace(char pcharacter)
      Description copied from interface: HasFormating
      check a character if it's character to replace.
      Parameters:
      pcharacter - character to check
      Returns:
      true if character has to be replaced
    • replaceCharacter

      public char replaceCharacter(char pcharacter)
      Description copied from interface: HasFormating
      replace a character.
      Parameters:
      pcharacter - to replace
      Returns:
      replacement character