Class 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 class  ComboBoxDataCommunicator.SelectionPreservingKeyMapper<TItem>
      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

        com.vaadin.flow.data.provider.DataCommunicator.EmptyDataProvider<T1 extends Object>, com.vaadin.flow.data.provider.DataCommunicator.Filter<F extends Object>
    • Field Summary

      • Fields inherited from class com.vaadin.flow.data.provider.DataCommunicator

        DEFAULT_PAGE_INCREASE_COUNT
    • 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
      void notifySelectionChanged()  
      • 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)
    • Method Detail

      • notifySelectionChanged

        public void notifySelectionChanged()