Interface TargetDataProviderUpdater<T>

  • Type Parameters:
    T - the bean type
    All Superinterfaces:
    java.io.Serializable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface TargetDataProviderUpdater<T>
    extends java.io.Serializable
    A handler for target grid data provider updater for GridRowDragger. Used to handle updates to the target grid's DataProvider after a drop.
    Since:
    8.2
    Author:
    Vaadin Ltd
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onDrop​(com.vaadin.shared.ui.dnd.DropEffect dropEffect, DataProvider<T,​?> dataProvider, int index, java.util.Collection<T> items)
      Called when items have been dropped on the target Grid.
    • Method Detail

      • onDrop

        void onDrop​(com.vaadin.shared.ui.dnd.DropEffect dropEffect,
                    DataProvider<T,​?> dataProvider,
                    int index,
                    java.util.Collection<T> items)
        Called when items have been dropped on the target Grid.
        Parameters:
        dropEffect - the reported drop effect from the drop event
        dataProvider - the target grid data provider
        index - the target index, Integer.MAX_VALUE is used for dropping things always to the end of the grid without having to fetch the size of the data provider
        items - items to be added.