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:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected 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

    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, passivatedByUpdate
  • 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

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class com.vaadin.flow.data.provider.DataCommunicator

    buildQuery, computeRequestedRange, confirmUpdate, doUnregister, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • notifySelectionChanged

      public void notifySelectionChanged()