Class TwinColSelectDataView<T>

java.lang.Object
com.vaadin.flow.data.provider.AbstractDataView<T>
org.vaadin.tatu.TwinColSelectDataView<T>
All Implemented Interfaces:
com.vaadin.flow.data.provider.DataView<T>, Serializable

public class TwinColSelectDataView<T> extends com.vaadin.flow.data.provider.AbstractDataView<T>
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
    TwinColSelectDataView(com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, TwinColSelect<T> twinColSelect)
    Constructs a new DataView.
    TwinColSelectDataView(com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, TwinColSelect<T> twinColSelect, com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.data.provider.IdentifierProvider<T>> identifierChangedCallback)
    Constructs a new DataView.
  • 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

    • TwinColSelectDataView

      public TwinColSelectDataView(com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, TwinColSelect<T> twinColSelect)
      Constructs a new DataView.
      Parameters:
      dataProviderSupplier - data provider supplier
      twinColSelect - TwinColSelect instance for this DataView
    • TwinColSelectDataView

      public TwinColSelectDataView(com.vaadin.flow.function.SerializableSupplier<com.vaadin.flow.data.provider.DataProvider<T,?>> dataProviderSupplier, TwinColSelect<T> twinColSelect, com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.data.provider.IdentifierProvider<T>> identifierChangedCallback)
      Constructs a new DataView.
      Parameters:
      dataProviderSupplier - data provider supplier
      twinColSelect - TwinColSelect instance for this DataView
      identifierChangedCallback - callback method which should be called when identifierProvider is changed
  • Method Details

    • getItem

      public T getItem(int index)
    • 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>
    • getSupportedDataProviderType

      protected Class<?> getSupportedDataProviderType()
      Specified by:
      getSupportedDataProviderType 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>