Class GridLayoutDataView<T>

java.lang.Object
com.vaadin.flow.data.provider.AbstractDataView<T>
io.jmix.flowui.kit.component.gridlayout.GridLayoutDataView<T>
Type Parameters:
T - the item type
All Implemented Interfaces:
com.vaadin.flow.data.provider.DataView<T>, Serializable

public class GridLayoutDataView<T> extends com.vaadin.flow.data.provider.AbstractDataView<T>
Implementation of generic data view for JmixGridLayout.
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
    GridLayoutDataView(com.vaadin.flow.function.SerializableSupplier<? extends com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, JmixGridLayout<T> gridLayout)
    Constructs a new generic data view for JmixGridLayout and verifies the passed data provider is compatible with this data view implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    getItem(int index)
     
    protected Class<?>
     

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

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

    Methods inherited from class java.lang.Object

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

    • GridLayoutDataView

      public GridLayoutDataView(com.vaadin.flow.function.SerializableSupplier<? extends com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, JmixGridLayout<T> gridLayout)
      Constructs a new generic data view for JmixGridLayout and verifies the passed data provider is compatible with this data view implementation.
      Parameters:
      dataProviderSupplier - data provider supplier
      gridLayout - grid layout instance for this DataView
  • Method Details

    • getSupportedDataProviderType

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

      public T getItem(int index)