Class LookupField<T>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.HtmlComponent
com.vaadin.flow.component.HtmlContainer
com.vaadin.flow.component.html.Div
com.vaadin.componentfactory.lookupfield.AbstractLookupField<T,T,com.vaadin.flow.component.combobox.ComboBox<T>,CustomFilterLookupField<T,String>,String>
com.vaadin.componentfactory.lookupfield.CustomFilterLookupField<T,String>
com.vaadin.componentfactory.lookupfield.LookupField<T>
- Type Parameters:
T- the type of the items to be inserted in the combo box
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.html.Div>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasHelper,com.vaadin.flow.component.HasOrderedComponents,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasText,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.HasValidation,com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<CustomFilterLookupField<T,,String>, T>, T> com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<CustomFilterLookupField<T,,String>, T>, T> com.vaadin.flow.data.binder.HasFilterableDataProvider<T,,String> com.vaadin.flow.data.binder.HasItems<T>,Serializable
public class LookupField<T>
extends CustomFilterLookupField<T,String>
implements com.vaadin.flow.component.HasHelper
Server-side component for the
vcf-lookup-field webcomponent.
The LookupField is a combination of a combobox and a dialog for advanced search.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.componentfactory.lookupfield.AbstractLookupField
AbstractLookupField.CreateItemEvent, AbstractLookupField.FilterEvent<FILTERTYPE>, AbstractLookupField.LookupFieldI18nNested classes/interfaces inherited from interface com.vaadin.flow.component.HasText
com.vaadin.flow.component.HasText.WhiteSpaceNested 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<?>> -
Field Summary
Fields inherited from class com.vaadin.componentfactory.lookupfield.AbstractLookupField
comboBox, DEFAULT_EMPTY_SELECTION, FIELD_SLOT_NAME, filterConverter, invertedFilterConverter, SLOT_KEY -
Constructor Summary
ConstructorsConstructorDescriptionCreates a lookup field with a defaultGridandComboBox.LookupField(com.vaadin.flow.component.grid.Grid<T> grid, com.vaadin.flow.component.combobox.ComboBox<T> comboBox) Creates a lookup field using the given grid and combo box.LookupField(Class<T> beanType) Creates a lookup field with aGridandComboBoxconfigured for the given bean type. -
Method Summary
Methods inherited from class com.vaadin.componentfactory.lookupfield.CustomFilterLookupField
addValueChangeListener, copyFieldValueFromGrid, copyFieldValueToGrid, getComboBox, getHelperComponent, getHelperText, getValue, setComboBox, setDataProvider, setDataProvider, setHelperComponent, setHelperText, setItemLabelGenerator, setLabel, setValue, showNoSelectionNotificationMethods inherited from class com.vaadin.componentfactory.lookupfield.AbstractLookupField
addCreateItemListener, addEmptySelectionListener, addFilterListener, addThemeVariants, footerCloseAction, footerSelectAction, getErrorMessage, getGrid, getI18n, getSelectionDisabledIfEmpty, isDraggable, isInvalid, isModal, isResizable, open, setCreateVisible, setDataProvider, setDraggable, setEnabled, setErrorMessage, setFilter, setFooterComponent, setGrid, setGridWidth, setHeader, setHeaderComponent, setI18n, setInvalid, setItems, setItems, setModal, setReadOnly, setRequiredIndicatorVisible, setResizable, setSelectionDisabledIfEmpty, setThemeVariantsMethods inherited from class com.vaadin.flow.component.HtmlComponent
getTitle, setTitleMethods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, 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.ClickNotifier
addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, bindChildren, getChildren, getComponentAt, getComponentCount, indexOf, remove, remove, removeAll, replaceMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
bindEnabled, isEnabledMethods inherited from interface com.vaadin.flow.data.binder.HasFilterableDataProvider
setDataProviderMethods inherited from interface com.vaadin.flow.component.HasHelper
bindHelperText, getHelperComponent, getHelperText, setHelperComponent, setHelperTextMethods inherited from interface com.vaadin.flow.data.binder.HasItems
setItems, setItemsMethods inherited from interface com.vaadin.flow.component.HasSize
bindHeight, bindWidth, 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, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasText
bindText, getText, getWhiteSpace, setText, setWhiteSpaceMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, bindThemeName, bindThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.HasValidation
setManualValidationMethods inherited from interface com.vaadin.flow.component.HasValue
bindValue, clear, getEmptyValue, getOptionalValue, isEmptyMethods inherited from interface com.vaadin.flow.component.HasValueAndElement
bindReadOnly, bindRequiredIndicatorVisible, isReadOnly, isRequiredIndicatorVisible
-
Constructor Details
-
LookupField
public LookupField()Creates a lookup field with a defaultGridandComboBox. -
LookupField
Creates a lookup field with aGridandComboBoxconfigured for the given bean type.- Parameters:
beanType- the bean type used to configure the grid columns
-
LookupField
public LookupField(com.vaadin.flow.component.grid.Grid<T> grid, com.vaadin.flow.component.combobox.ComboBox<T> comboBox) Creates a lookup field using the given grid and combo box.- Parameters:
grid- the grid to usecomboBox- the combo box to use
-