Class JmixGroupGridDataCommunicator<T>

java.lang.Object
com.vaadin.flow.data.provider.DataCommunicator<T>
com.vaadin.flow.data.provider.hierarchy.HierarchicalDataCommunicator<T>
io.jmix.groupgridflowui.kit.component.JmixGroupGridDataCommunicator<T>
Type Parameters:
T - item type
All Implemented Interfaces:
Serializable

public class JmixGroupGridDataCommunicator<T> extends com.vaadin.flow.data.provider.hierarchy.HierarchicalDataCommunicator<T>
CAUTION! Copied from com.vaadin.flow.component.treegrid.TreeGridDataCommunicator. Last update 25.1.0.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.vaadin.flow.data.provider.DataCommunicator

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

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

    DEFAULT_PAGE_INCREASE_COUNT, passivatedByUpdate
  • Constructor Summary

    Constructors
    Constructor
    Description
    JmixGroupGridDataCommunicator(com.vaadin.flow.dom.Element element, com.vaadin.flow.data.provider.CompositeDataGenerator<T> dataGenerator, com.vaadin.flow.data.provider.ArrayUpdater arrayUpdater, com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.function.ValueProvider<T,String>> uniqueKeyProviderSupplier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    preloadFlatRangeBackward(int start, int length)
     
    preloadFlatRangeForward(int start, int length)
     
    void
     
    void
     
    int
    resolveIndexPath(int... path)
     
    int[]
    resolveItem(T item)
    Expands all ancestors of the item and returns the index path of it.

    Methods inherited from class com.vaadin.flow.data.provider.hierarchy.HierarchicalDataCommunicator

    buildQuery, buildQuery, collapse, collapse, confirmUpdate, expand, expand, fetchFromProvider, getDataProvider, getDataProviderSize, getDepth, getItemCountEstimate, getItemCountEstimateIncrease, handleDataRefreshEvent, hasChildren, hasExpandedItems, isDefinedSize, isExpanded, refresh, refresh, setDataProvider, setDataProvider, setDefinedSize, setItemCountEstimate, setItemCountEstimateIncrease, setViewportRange

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

    computeRequestedRange, computeViewportRange, doUnregister, enablePushUpdates, getBackEndSorting, getFilter, getInMemorySorting, getItem, getItemCount, getKeyMapper, getPageSize, getPassivatedKeys, isFetchEnabled, isItemActive, isPagingEnabled, setBackEndSorting, setCountCallback, setDataProvider, setFetchEnabled, setInMemorySorting, setKeyMapper, setPageSize, setPagingEnabled, setRequestedRange

    Methods inherited from class java.lang.Object

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

    • JmixGroupGridDataCommunicator

      public JmixGroupGridDataCommunicator(com.vaadin.flow.dom.Element element, com.vaadin.flow.data.provider.CompositeDataGenerator<T> dataGenerator, com.vaadin.flow.data.provider.ArrayUpdater arrayUpdater, com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.function.ValueProvider<T,String>> uniqueKeyProviderSupplier)
  • Method Details

    • reset

      public void reset()
      Overrides:
      reset in class com.vaadin.flow.data.provider.hierarchy.HierarchicalDataCommunicator<T>
    • refreshViewport

      public void refreshViewport()
      Overrides:
      refreshViewport in class com.vaadin.flow.data.provider.hierarchy.HierarchicalDataCommunicator<T>
    • preloadFlatRangeForward

      public List<T> preloadFlatRangeForward(int start, int length)
      Overrides:
      preloadFlatRangeForward in class com.vaadin.flow.data.provider.hierarchy.HierarchicalDataCommunicator<T>
    • preloadFlatRangeBackward

      public List<T> preloadFlatRangeBackward(int start, int length)
      Overrides:
      preloadFlatRangeBackward in class com.vaadin.flow.data.provider.hierarchy.HierarchicalDataCommunicator<T>
    • resolveIndexPath

      public int resolveIndexPath(int... path)
      Overrides:
      resolveIndexPath in class com.vaadin.flow.data.provider.hierarchy.HierarchicalDataCommunicator<T>
    • resolveItem

      public int[] resolveItem(T item)
      Expands all ancestors of the item and returns the index path of it. Returns empty list if item is not found.
      Parameters:
      item - the item to resolve
      Returns:
      the index path of the item