Class AbstractFormatingSuggestBox
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.google.gwt.user.client.ui.AbstractSuggestBoxNewEditor
de.knightsoftnet.mtwidgets.client.ui.widget.SuggestBoxNewEditor
de.knightsoftnet.mtwidgets.client.ui.widget.SuggestBoxWithEditorErrors
de.knightsoftnet.mtwidgets.client.ui.widget.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
abstract suggest box which formats input when typing.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.AbstractSuggestBoxNewEditor
AbstractSuggestBoxNewEditor.DefaultSuggestionDisplay, AbstractSuggestBoxNewEditor.SuggestionCallback, AbstractSuggestBoxNewEditor.SuggestionDisplayNested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabledNested classes/interfaces inherited from interface org.gwtproject.editor.client.Editor
org.gwtproject.editor.client.Editor.Ignore, org.gwtproject.editor.client.Editor.Path -
Field Summary
Fields inherited from class com.google.gwt.user.client.ui.AbstractSuggestBoxNewEditor
callback, currentText, display, limit, oracle, selectsFirstItem, STYLENAME_DEFAULTFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFormatingSuggestBox(com.google.gwt.user.client.ui.SuggestOracle oracle) Constructor forSuggestBox.protectedAbstractFormatingSuggestBox(com.google.gwt.user.client.ui.SuggestOracle oracle, ValueBoxBaseWithEditorErrors<String> box) Constructor forSuggestBox. -
Method Summary
Modifier and TypeMethodDescriptionvoidformatValue(de.knightsoftnet.validators.shared.data.ValueWithPos<String> value) format and set value.voidonBrowserEvent(com.google.gwt.user.client.Event event) voidreformat value from widget.voidreformatValue(boolean fireEvents) reformat value from widget.protected voidsetTextWithPos(de.knightsoftnet.validators.shared.data.ValueWithPos<String> formatedEntry, boolean fireEvents) Methods inherited from class de.knightsoftnet.mtwidgets.client.ui.widget.SuggestBoxWithEditorErrors
addBlurHandler, addFocusHandler, checkValidity, getAutocomplete, getPlaceholder, getValidationMessage, getValidationMessageElement, getValidity, isAutofocus, isRequired, setAutocomplete, setAutofocus, setCustomValidity, setPlaceholder, setRequired, setValidationMessageElementMethods inherited from class de.knightsoftnet.mtwidgets.client.ui.widget.SuggestBoxNewEditor
addEventsToTextBox, asEditor, getBoxAsFoucsWidget, getTabIndex, getText, getValue, getValueBox, isEnabled, setAccessKey, setEnabled, setFocus, setTabIndex, setText, setValue, setValue, wrapMethods inherited from class com.google.gwt.user.client.ui.AbstractSuggestBoxNewEditor
addEventsToTextBox, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addSelectionHandler, addValueChangeHandler, getLimit, getSuggestionDisplay, getSuggestOracle, hideSuggestionList, isAnimationEnabled, isAutoSelectEnabled, isSuggestionListShowing, onEnsureDebugId, refreshSuggestionList, setAnimationEnabled, setAutoSelectEnabled, setLimit, setOracle, setPopupStyleName, showSuggestionListMethods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onDetach, render, render, resolvePotentialElement, setWidgetMethods 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, unsinkEventsMethods 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, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.knightsoftnet.mtwidgets.client.ui.widget.features.HasFormating
formatValue, formatValueSynchron, isAllowedCharacter, isCharacterToReplace, isFormatingCharacter, replaceCharacterMethods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEventMethods inherited from interface de.knightsoftnet.mtwidgets.client.ui.widget.features.HasValidationMessageElement
editorErrorMatches, setTitle, showErrors, showErrorsMethods inherited from interface org.gwtproject.editor.client.IsEditor
asEditor
-
Constructor Details
-
AbstractFormatingSuggestBox
protected AbstractFormatingSuggestBox(com.google.gwt.user.client.ui.SuggestOracle oracle) - Parameters:
oracle- the oracle for thisSuggestBox
-
AbstractFormatingSuggestBox
protected AbstractFormatingSuggestBox(com.google.gwt.user.client.ui.SuggestOracle oracle, ValueBoxBaseWithEditorErrors<String> box) - Parameters:
oracle- the oracle for thisSuggestBoxbox- value box used for input
-
-
Method Details
-
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event) - Specified by:
onBrowserEventin interfacecom.google.gwt.user.client.EventListener- Overrides:
onBrowserEventin classcom.google.gwt.user.client.ui.Composite
-
reformatValue
public void reformatValue()Description copied from interface:HasFormatingreformat value from widget.- Specified by:
reformatValuein interfaceHasFormating
-
reformatValue
public void reformatValue(boolean fireEvents) Description copied from interface:HasFormatingreformat value from widget.- Specified by:
reformatValuein interfaceHasFormating- Parameters:
fireEvents- when true and value changes, a ValueChangeEvent is triggered
-