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
ConstructorsConstructorDescriptionJmixGroupGridDataCommunicator(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 TypeMethodDescriptionpreloadFlatRangeBackward(int start, int length) preloadFlatRangeForward(int start, int length) voidvoidreset()intresolveIndexPath(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, setViewportRangeMethods 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
-
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:
resetin classcom.vaadin.flow.data.provider.hierarchy.HierarchicalDataCommunicator<T>
-
refreshViewport
public void refreshViewport()- Overrides:
refreshViewportin classcom.vaadin.flow.data.provider.hierarchy.HierarchicalDataCommunicator<T>
-
preloadFlatRangeForward
- Overrides:
preloadFlatRangeForwardin classcom.vaadin.flow.data.provider.hierarchy.HierarchicalDataCommunicator<T>
-
preloadFlatRangeBackward
- Overrides:
preloadFlatRangeBackwardin classcom.vaadin.flow.data.provider.hierarchy.HierarchicalDataCommunicator<T>
-
resolveIndexPath
public int resolveIndexPath(int... path) - Overrides:
resolveIndexPathin classcom.vaadin.flow.data.provider.hierarchy.HierarchicalDataCommunicator<T>
-
resolveItem
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
-