Class PagelessDataCommunicator<T>

  • Type Parameters:
    T - item type
    All Implemented Interfaces:
    Serializable

    public class PagelessDataCommunicator<T>
    extends com.vaadin.flow.data.provider.DataCommunicator<T>
    DataCommunicator implementation which disables the paging and does not allow the user to set up the page for VirtualList.
    See Also:
    Serialized Form
    • Nested Class Summary

      • 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
      PagelessDataCommunicator​(com.vaadin.flow.data.provider.DataGenerator<T> dataGenerator, com.vaadin.flow.data.provider.ArrayUpdater arrayUpdater, com.vaadin.flow.function.SerializableConsumer<elemental.json.JsonArray> dataUpdater, com.vaadin.flow.internal.StateNode stateNode)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isPagingEnabled()  
      void setPageSize​(int pageSize)  
      void setPagingEnabled​(boolean pagingEnabled)  
      • 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, refresh, reset, setBackEndSorting, setCountCallback, setDataProvider, setDataProvider, setDefinedSize, setFetchEnabled, setInMemorySorting, setItemCountEstimate, setItemCountEstimateIncrease, setKeyMapper, setRequestedRange
    • Constructor Detail

      • PagelessDataCommunicator

        public PagelessDataCommunicator​(com.vaadin.flow.data.provider.DataGenerator<T> dataGenerator,
                                        com.vaadin.flow.data.provider.ArrayUpdater arrayUpdater,
                                        com.vaadin.flow.function.SerializableConsumer<elemental.json.JsonArray> dataUpdater,
                                        com.vaadin.flow.internal.StateNode stateNode)
    • Method Detail

      • setPageSize

        public void setPageSize​(int pageSize)
        Overrides:
        setPageSize in class com.vaadin.flow.data.provider.DataCommunicator<T>
      • setPagingEnabled

        public void setPagingEnabled​(boolean pagingEnabled)
        Overrides:
        setPagingEnabled in class com.vaadin.flow.data.provider.DataCommunicator<T>
      • isPagingEnabled

        public boolean isPagingEnabled()
        Overrides:
        isPagingEnabled in class com.vaadin.flow.data.provider.DataCommunicator<T>