Class GridDataView<T>

java.lang.Object
com.vaadin.flow.data.provider.AbstractDataView<T>
io.jmix.groupgridflowui.kit.vaadin.grid.dataview.GridDataView<T>
Type Parameters:
T - the item type
All Implemented Interfaces:
com.vaadin.flow.data.provider.DataView<T>, Serializable

public class GridDataView<T> extends com.vaadin.flow.data.provider.AbstractDataView<T>
Implementation of generic data view for grid.
Since:
See Also:
  • Field Summary

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

    component, dataProviderSupplier, NULL_IDENTIFIER_ERROR_MESSAGE, NULL_ITEM_ERROR_MESSAGE
  • Constructor Summary

    Constructors
    Constructor
    Description
    GridDataView(com.vaadin.flow.data.provider.DataCommunicator<T> dataCommunicator, Grid<T> grid)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getItem(int index)
     
     
    protected Class<?>
     
    void
    setIdentifierProvider(com.vaadin.flow.data.provider.IdentifierProvider<T> identifierProvider)
     

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

    addIdentifierProviderChangeListener, addItemCountChangeListener, equals, getIdentifierProvider, getItemIndex, getItemIndex, refreshAll, refreshItem, verifyDataProviderType, verifyDataProviderType

    Methods inherited from class java.lang.Object

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

    • GridDataView

      public GridDataView(com.vaadin.flow.data.provider.DataCommunicator<T> dataCommunicator, Grid<T> grid)
  • Method Details

    • getItem

      public T getItem(int index)
    • getSupportedDataProviderType

      protected Class<?> getSupportedDataProviderType()
      Specified by:
      getSupportedDataProviderType in class com.vaadin.flow.data.provider.AbstractDataView<T>
    • getItems

      public Stream<T> getItems()
      Specified by:
      getItems in interface com.vaadin.flow.data.provider.DataView<T>
      Overrides:
      getItems in class com.vaadin.flow.data.provider.AbstractDataView<T>
    • setIdentifierProvider

      public void setIdentifierProvider(com.vaadin.flow.data.provider.IdentifierProvider<T> identifierProvider)
      Specified by:
      setIdentifierProvider in interface com.vaadin.flow.data.provider.DataView<T>
      Overrides:
      setIdentifierProvider in class com.vaadin.flow.data.provider.AbstractDataView<T>