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
Customized data communicator that uses a custom key mapper for preserving
keys of selected items when using lazy-loading.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Customized key mapper that does not remove key for an item as long as it is selected.Nested classes/interfaces inherited from class com.vaadin.flow.data.provider.DataCommunicator
DataCommunicator.EmptyDataProvider<T1>, DataCommunicator.Filter<F>
-
Field Summary
Fields inherited from class com.vaadin.flow.data.provider.DataCommunicator
DEFAULT_PAGE_INCREASE_COUNT
-
Constructor Summary
ConstructorDescriptionComboBoxDataCommunicator
(ComboBoxBase<?, TItem, ?> comboBox, DataGenerator<TItem> dataGenerator, ArrayUpdater arrayUpdater, SerializableConsumer<elemental.json.JsonArray> dataUpdater, StateNode stateNode, boolean fetchEnabled) -
Method Summary
Methods inherited from class com.vaadin.flow.data.provider.DataCommunicator
buildQuery, 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 Details
-
ComboBoxDataCommunicator
public ComboBoxDataCommunicator(ComboBoxBase<?, TItem, ?> comboBox, DataGenerator<TItem> dataGenerator, ArrayUpdater arrayUpdater, SerializableConsumer<elemental.json.JsonArray> dataUpdater, StateNode stateNode, boolean fetchEnabled)
-
-
Method Details
-
notifySelectionChanged
public void notifySelectionChanged()
-