Class ComboBoxDataCommunicator<TItem>
- java.lang.Object
-
- com.vaadin.flow.data.provider.DataCommunicator<TItem>
-
- com.vaadin.flow.component.combobox.ComboBoxDataCommunicator<TItem>
-
- Type Parameters:
TItem- The type of the item selectable in the combo box
- All Implemented Interfaces:
Serializable
public class ComboBoxDataCommunicator<TItem> extends com.vaadin.flow.data.provider.DataCommunicator<TItem>Customized data communicator that uses a custom key mapper for preserving keys of selected items when using lazy-loading.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classComboBoxDataCommunicator.SelectionPreservingKeyMapper<TItem>Customized key mapper that does not remove key for an item as long as it is selected.
-
Constructor Summary
Constructors Constructor Description ComboBoxDataCommunicator(ComboBoxBase<?,TItem,?> comboBox, com.vaadin.flow.data.provider.DataGenerator<TItem> dataGenerator, com.vaadin.flow.data.provider.ArrayUpdater arrayUpdater, com.vaadin.flow.function.SerializableConsumer<elemental.json.JsonArray> dataUpdater, com.vaadin.flow.internal.StateNode stateNode, boolean fetchEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidnotifySelectionChanged()-
Methods inherited from class com.vaadin.flow.data.provider.DataCommunicator
buildQuery, computeRequestedRange, confirmUpdate, enablePushUpdates, fetchFromProvider, getBackEndSorting, getDataProvider, getDataProviderSize, getFilter, getInMemorySorting, getItem, getItemCount, getItemCountEstimate, getItemCountEstimateIncrease, getKeyMapper, getPageSize, getPassivatedKeys, handleDataRefreshEvent, isDefinedSize, isFetchEnabled, isItemActive, isPagingEnabled, refresh, reset, setBackEndSorting, setCountCallback, setDataProvider, setDataProvider, setDefinedSize, setFetchEnabled, setInMemorySorting, setItemCountEstimate, setItemCountEstimateIncrease, setKeyMapper, setPageSize, setPagingEnabled, setRequestedRange
-
-
-
-
Constructor Detail
-
ComboBoxDataCommunicator
public ComboBoxDataCommunicator(ComboBoxBase<?,TItem,?> comboBox, com.vaadin.flow.data.provider.DataGenerator<TItem> dataGenerator, com.vaadin.flow.data.provider.ArrayUpdater arrayUpdater, com.vaadin.flow.function.SerializableConsumer<elemental.json.JsonArray> dataUpdater, com.vaadin.flow.internal.StateNode stateNode, boolean fetchEnabled)
-
-