Interface TargetDataProviderUpdater<T>

  • Type Parameters:
    T - the bean type
    All Superinterfaces:
    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 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 Detail

      • onDrop

        void onDrop​(DropEffect dropEffect,
                    DataProvider<T,​?> dataProvider,
                    int index,
                    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.