Class ContainerTreeDataGridItems<E>

java.lang.Object
com.vaadin.flow.data.provider.AbstractDataProvider<T,Void>
io.jmix.flowui.data.grid.ContainerDataGridItems<E>
io.jmix.flowui.data.grid.ContainerTreeDataGridItems<E>
All Implemented Interfaces:
com.vaadin.flow.data.provider.DataProvider<E,Void>, com.vaadin.flow.data.provider.hierarchy.HierarchicalDataProvider<E,Void>, ContainerDataUnit<E>, DataUnit, EntityDataUnit, DataGridItems<E>, DataGridItems.Sortable<E>, EntityDataGridItems<E>, TreeDataGridItems<E>, HasType<E>, Serializable

public class ContainerTreeDataGridItems<E> extends ContainerDataGridItems<E> implements TreeDataGridItems<E>, com.vaadin.flow.data.provider.hierarchy.HierarchicalDataProvider<E,Void>
See Also:
  • Field Details

    • hierarchyProperty

      protected final String hierarchyProperty
    • showOrphans

      protected final boolean showOrphans
  • Constructor Details

    • ContainerTreeDataGridItems

      public ContainerTreeDataGridItems(CollectionContainer<E> container, String hierarchyProperty)
    • ContainerTreeDataGridItems

      public ContainerTreeDataGridItems(CollectionContainer<E> container, String hierarchyProperty, boolean showOrphans)
  • Method Details

    • getChildCount

      public int getChildCount(com.vaadin.flow.data.provider.hierarchy.HierarchicalQuery<E,Void> query)
      Specified by:
      getChildCount in interface com.vaadin.flow.data.provider.hierarchy.HierarchicalDataProvider<E,Void>
    • fetchChildren

      public Stream<E> fetchChildren(com.vaadin.flow.data.provider.hierarchy.HierarchicalQuery<E,Void> query)
      Specified by:
      fetchChildren in interface com.vaadin.flow.data.provider.hierarchy.HierarchicalDataProvider<E,Void>
    • getChildren

      protected Stream<E> getChildren(@Nullable E item)
    • hasChildren

      public boolean hasChildren(E item)
      Specified by:
      hasChildren in interface com.vaadin.flow.data.provider.hierarchy.HierarchicalDataProvider<E,Void>