Class GridDragStartEvent<T>

    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      GridDragStartEvent​(Grid<T> source, com.vaadin.shared.ui.dnd.EffectAllowed effectAllowed, java.util.List<T> draggedItems)
      Creates a drag start event.
    • Constructor Detail

      • GridDragStartEvent

        public GridDragStartEvent​(Grid<T> source,
                                  com.vaadin.shared.ui.dnd.EffectAllowed effectAllowed,
                                  java.util.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 java.util.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.