com.vaadin.ui.components.grid.

Class TreeGridDropEvent<T>

    • Constructor Detail

      • TreeGridDropEvent

        public TreeGridDropEvent​(TreeGrid<T> target,
                                 Map<String,​String> data,
                                 DropEffect dropEffect,
                                 DragSourceExtension<? extends AbstractComponent> dragSourceExtension,
                                 T dropTargetRow,
                                 DropLocation dropLocation,
                                 MouseEventDetails mouseEventDetails,
                                 Integer depth,
                                 Boolean collapsed)

        Creates a TreeGrid row drop event.

        Parameters:

        target - TreeGrid that received the drop.

        data - Map containing all types and corresponding data from the DataTransfer object.

        dropEffect - the desired drop effect

        dragSourceExtension - Drag source extension of the component that initiated the drop event.

        dropTargetRow - Target row that received the drop, or null if dropped on empty grid

        dropLocation - Location of the drop within the target row.

        mouseEventDetails - Mouse event details object containing information about the drop event

        depth - depth of the row in the hierarchy

        collapsed - whether the target row is collapsed

    • Method Detail

      • getDropTargetRowDepth

        public Optional<Integer> getDropTargetRowDepth()

        Gets the depth of the drop target row in the hierarchy.

        Returns:

        the depth of the drop target row in the hierarchy

      • isDropTargetRowCollapsed

        public Optional<Boolean> isDropTargetRowCollapsed()

        Tells whether the drop target row is collapsed.

        Returns:

        true if the drop target row is collapsed, false otherwise