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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.AbstractSuggestBoxNewEditor
AbstractSuggestBoxNewEditor.DefaultSuggestionDisplay, AbstractSuggestBoxNewEditor.SuggestionCallback, AbstractSuggestBoxNewEditor.SuggestionDisplay
-
-
Field Summary
-
Fields inherited from class com.google.gwt.user.client.ui.AbstractSuggestBoxNewEditor
callback, currentText, display, limit, oracle, selectsFirstItem, STYLENAME_DEFAULT
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFormatingSuggestBox(com.google.gwt.user.client.ui.SuggestOracle poracle)Constructor forSuggestBox.protectedAbstractFormatingSuggestBox(com.google.gwt.user.client.ui.SuggestOracle poracle, ValueBoxBaseWithEditorErrors<String> pbox)Constructor forSuggestBox.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidformatValue(de.knightsoftnet.validators.shared.data.ValueWithPos<String> pvalue)format and set value.voidonBrowserEvent(com.google.gwt.user.client.Event pevent)voidreformatValue()reformat 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, setValidationMessageElement
-
Methods 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, wrap
-
Methods 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, showSuggestionList
-
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, 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
formatValue, formatValueSynchron, isAllowedCharacter, isCharacterToReplace, isFormatingCharacter, replaceCharacter
-
Methods inherited from interface de.knightsoftnet.mtwidgets.client.ui.widget.features.HasValidationMessageElement
editorErrorMatches, setTitle, showErrors, showErrors
-
-
-
-
Constructor Detail
-
AbstractFormatingSuggestBox
protected AbstractFormatingSuggestBox(com.google.gwt.user.client.ui.SuggestOracle poracle)
- Parameters:
poracle- the oracle for thisSuggestBox
-
AbstractFormatingSuggestBox
protected AbstractFormatingSuggestBox(com.google.gwt.user.client.ui.SuggestOracle poracle, ValueBoxBaseWithEditorErrors<String> pbox)- Parameters:
poracle- the oracle for thisSuggestBoxpbox- value box used for input
-
-
Method Detail
-
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event pevent)
- 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
-
formatValue
public void formatValue(de.knightsoftnet.validators.shared.data.ValueWithPos<String> pvalue)
Description copied from interface:HasFormatingformat and set value.- Specified by:
formatValuein interfaceHasFormating- Parameters:
pvalue- value to format
-
setTextWithPos
protected void setTextWithPos(de.knightsoftnet.validators.shared.data.ValueWithPos<String> formatedEntry, boolean fireEvents)
-
-