com.vaadin.ui.components.grid.

Class GridDragStartEvent<T>

    • Constructor Detail

      • GridDragStartEvent

        public GridDragStartEvent​(Grid<T> source,
                                  EffectAllowed effectAllowed,
                                  List<T> draggedItems)

        Creates a drag start event.

        Parameters:

        source - The source grid where the rows are being dragged from.

        effectAllowed - Allowed effect from DataTransfer.effectAllowed object.

        draggedItems - List of items being dragged.

    • Method Detail

      • getDraggedItems

        public List<T> getDraggedItems()

        Get the dragged row items.

        The ordering of the list is the following: first the item that the drag started from, optionally followed by all the other selected rows in first-to-last order on the client side.

        Returns:

        an unmodifiable list of items that are being dragged.