Class AbstractPhoneNumberRestSuggestBox
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- de.knightsoftnet.mtwidgets.client.ui.widget.SuggestBoxWithEditorErrors
-
- de.knightsoftnet.mtwidgets.client.ui.widget.AbstractFormatingSuggestBox
-
- de.knightsoftnet.mtwidgets.client.ui.widget.AbstractPhoneNumberRestSuggestBox
-
- All Implemented Interfaces:
com.google.gwt.editor.client.Editor<String>,com.google.gwt.editor.client.HasEditorErrors<String>,com.google.gwt.editor.client.IsEditor<com.google.gwt.editor.client.LeafValueEditor<String>>,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,HasValidity
- Direct Known Subclasses:
PhoneNumberCommonInterRestSuggestBox,PhoneNumberCommonRestSuggestBox,PhoneNumberDin5008InterRestSuggestBox,PhoneNumberDin5008RestSuggestBox,PhoneNumberE123InterRestSuggestBox,PhoneNumberE123RestSuggestBox,PhoneNumberMsRestSuggestBox,PhoneNumberUriRestSuggestBox
public abstract class AbstractPhoneNumberRestSuggestBox extends AbstractFormatingSuggestBox
abstract phone number suggest widget with rest calls.- Author:
- Manfred Tremmel
-
-
Field Summary
Fields Modifier and Type Field Description protected org.fusesource.restygwt.client.MethodCallback<ValueWithPos<String>>callbackprotected com.google.gwt.user.client.TakesValue<?>countryCodeFieldprotected PhoneNumberServiceAsyncservice
-
Constructor Summary
Constructors Constructor Description AbstractPhoneNumberRestSuggestBox(com.google.gwt.user.client.ui.SuggestOracle poracle)default constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidformatValue(ValueWithPos<String> pvalue, boolean fireEvents)abstract voidformatValue(ValueWithPosAndCountry<String> pkey, FutureResult<ValueWithPos<String>> presult)booleanisAllowedCharacter(char pcharacter)booleanisCharacterToReplace(char pcharacter)charreplaceCharacter(char pcharacter)voidsetCountryCodeReferenceField(com.google.gwt.user.client.TakesValue<?> pcountryCodeField)set reference to a field which contains the country code.-
Methods inherited from class de.knightsoftnet.mtwidgets.client.ui.widget.AbstractFormatingSuggestBox
formatValue, onBrowserEvent, reformatValue, reformatValue, setTextWithPos
-
Methods inherited from class de.knightsoftnet.mtwidgets.client.ui.widget.SuggestBoxWithEditorErrors
addBlurHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addSelectionHandler, addValueChangeHandler, asEditor, checkValidity, editorErrorMatches, getAutocomplete, getPlaceholder, getTabIndex, getText, getValidationMessage, getValidationMessageElement, getValidity, getValue, getValueBox, isAnimationEnabled, isAutofocus, isEnabled, isRequired, setAccessKey, setAnimationEnabled, setAutocomplete, setAutofocus, setEnabled, setFocus, setPlaceholder, setRequired, setTabIndex, setText, setValidationMessageElement, setValue, setValue, showErrors
-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.knightsoftnet.mtwidgets.client.ui.widget.features.HasFormating
formatValueSynchron, isFormatingCharacter
-
-
-
-
Field Detail
-
service
protected final PhoneNumberServiceAsync service
-
callback
protected final org.fusesource.restygwt.client.MethodCallback<ValueWithPos<String>> callback
-
countryCodeField
protected com.google.gwt.user.client.TakesValue<?> countryCodeField
-
-
Method Detail
-
formatValue
public void formatValue(ValueWithPos<String> pvalue, boolean fireEvents)
-
formatValue
public abstract void formatValue(ValueWithPosAndCountry<String> pkey, FutureResult<ValueWithPos<String>> presult) throws ExecutionException
- Throws:
ExecutionException
-
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)
-
isCharacterToReplace
public boolean isCharacterToReplace(char pcharacter)
-
replaceCharacter
public char replaceCharacter(char pcharacter)
-
-