Package com.vaadin.componentfactory
Class Autocomplete
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.littemplate.LitTemplate
com.vaadin.componentfactory.Autocomplete
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.BlurNotifier<Autocomplete>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.Focusable<Autocomplete>,com.vaadin.flow.component.FocusNotifier<Autocomplete>,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.HasValidation,com.vaadin.flow.component.HasValue<Autocomplete.AutocompleteValueAppliedEvent,,String> com.vaadin.flow.component.shared.HasPrefix,com.vaadin.flow.component.shared.HasSuffix,com.vaadin.flow.internal.Template,Serializable
@Tag("vcf-autocomplete")
@NpmPackage(value="@lit-labs/observers",version="2.0.0") @NpmPackage(value="@vaadin-component-factory/vcf-autocomplete",version="3.0.0")
@JsModule("@vaadin-component-factory/vcf-autocomplete/src/vcf-autocomplete.js")
public class Autocomplete
extends com.vaadin.flow.component.littemplate.LitTemplate
implements com.vaadin.flow.component.HasTheme, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasValue<Autocomplete.AutocompleteValueAppliedEvent,String>, com.vaadin.flow.component.Focusable<Autocomplete>, com.vaadin.flow.component.HasValidation, com.vaadin.flow.component.shared.HasPrefix, com.vaadin.flow.component.shared.HasSuffix
Server-side component for the
vcf-autocomplete element.
Note: isOpened,setOpened and setValue are not supported. The current implementation of the polymer-side component does not allow it.
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier
com.vaadin.flow.component.BlurNotifier.BlurEvent<C extends com.vaadin.flow.component.Component>Nested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier
com.vaadin.flow.component.FocusNotifier.FocusEvent<C extends com.vaadin.flow.component.Component>Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasValue
com.vaadin.flow.component.HasValue.ValueChangeEvent<V>, com.vaadin.flow.component.HasValue.ValueChangeListener<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddAutocompleteValueAppliedListener(com.vaadin.flow.component.ComponentEventListener<Autocomplete.AutocompleteValueAppliedEvent> listener) com.vaadin.flow.shared.RegistrationaddChangeListener(com.vaadin.flow.component.ComponentEventListener<Autocomplete.AucompleteChangeEvent> listener) com.vaadin.flow.shared.RegistrationaddValueChangeListener(com.vaadin.flow.component.HasValue.ValueChangeListener<? super Autocomplete.AutocompleteValueAppliedEvent> listener) com.vaadin.flow.shared.RegistrationaddValueClearListener(com.vaadin.flow.component.ComponentEventListener<Autocomplete.ValueClearEvent> listener) getLabel()com.vaadin.flow.component.Componentcom.vaadin.flow.component.ComponentgetValue()booleanbooleanbooleanbooleanvoidsetEnabled(boolean enabled) voidvoidsetInvalid(boolean b) voidvoidsetLimit(int limit) voidsetOptions(List<String> options) voidsetPlaceholder(String placeholder) voidsetPrefixComponent(com.vaadin.flow.component.Component component) voidsetReadOnly(boolean readOnly) voidsetRequiredIndicatorVisible(boolean requiredIndicatorVisible) voidsetSuffixComponent(com.vaadin.flow.component.Component component) voidMethods inherited from class com.vaadin.flow.component.littemplate.LitTemplate
getChildrenMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, focus, getTabIndex, setTabIndexMethods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.HasValidation
setManualValidationMethods inherited from interface com.vaadin.flow.component.HasValue
clear, getEmptyValue, getOptionalValue, isEmpty
-
Constructor Details
-
Autocomplete
public Autocomplete() -
Autocomplete
public Autocomplete(int limit)
-
-
Method Details
-
setLimit
public void setLimit(int limit) -
setErrorMessage
- Specified by:
setErrorMessagein interfacecom.vaadin.flow.component.HasValidation
-
getErrorMessage
- Specified by:
getErrorMessagein interfacecom.vaadin.flow.component.HasValidation
-
setInvalid
public void setInvalid(boolean b) - Specified by:
setInvalidin interfacecom.vaadin.flow.component.HasValidation
-
isInvalid
public boolean isInvalid()- Specified by:
isInvalidin interfacecom.vaadin.flow.component.HasValidation
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfacecom.vaadin.flow.component.HasEnabled
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfacecom.vaadin.flow.component.HasEnabled
-
getPlaceholderString
-
setPlaceholder
-
getLabel
-
setLabel
-
setOptions
-
addChangeListener
public com.vaadin.flow.shared.Registration addChangeListener(com.vaadin.flow.component.ComponentEventListener<Autocomplete.AucompleteChangeEvent> listener) -
addValueChangeListener
public com.vaadin.flow.shared.Registration addValueChangeListener(com.vaadin.flow.component.HasValue.ValueChangeListener<? super Autocomplete.AutocompleteValueAppliedEvent> listener) - Specified by:
addValueChangeListenerin interfacecom.vaadin.flow.component.HasValue<Autocomplete.AutocompleteValueAppliedEvent,String>
-
addAutocompleteValueAppliedListener
public com.vaadin.flow.shared.Registration addAutocompleteValueAppliedListener(com.vaadin.flow.component.ComponentEventListener<Autocomplete.AutocompleteValueAppliedEvent> listener) -
setValue
- Specified by:
setValuein interfacecom.vaadin.flow.component.HasValue<Autocomplete.AutocompleteValueAppliedEvent,String>
-
getValue
- Specified by:
getValuein interfacecom.vaadin.flow.component.HasValue<Autocomplete.AutocompleteValueAppliedEvent,String>
-
setReadOnly
public void setReadOnly(boolean readOnly) - Specified by:
setReadOnlyin interfacecom.vaadin.flow.component.HasValue<Autocomplete.AutocompleteValueAppliedEvent,String>
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfacecom.vaadin.flow.component.HasValue<Autocomplete.AutocompleteValueAppliedEvent,String>
-
setRequiredIndicatorVisible
public void setRequiredIndicatorVisible(boolean requiredIndicatorVisible) - Specified by:
setRequiredIndicatorVisiblein interfacecom.vaadin.flow.component.HasValue<Autocomplete.AutocompleteValueAppliedEvent,String>
-
isRequiredIndicatorVisible
public boolean isRequiredIndicatorVisible()- Specified by:
isRequiredIndicatorVisiblein interfacecom.vaadin.flow.component.HasValue<Autocomplete.AutocompleteValueAppliedEvent,String>
-
addValueClearListener
public com.vaadin.flow.shared.Registration addValueClearListener(com.vaadin.flow.component.ComponentEventListener<Autocomplete.ValueClearEvent> listener) -
setPrefixComponent
public void setPrefixComponent(com.vaadin.flow.component.Component component) - Specified by:
setPrefixComponentin interfacecom.vaadin.flow.component.shared.HasPrefix
-
getPrefixComponent
public com.vaadin.flow.component.Component getPrefixComponent()- Specified by:
getPrefixComponentin interfacecom.vaadin.flow.component.shared.HasPrefix
-
setSuffixComponent
public void setSuffixComponent(com.vaadin.flow.component.Component component) - Specified by:
setSuffixComponentin interfacecom.vaadin.flow.component.shared.HasSuffix
-
getSuffixComponent
public com.vaadin.flow.component.Component getSuffixComponent()- Specified by:
getSuffixComponentin interfacecom.vaadin.flow.component.shared.HasSuffix
-