Class TreeGridDropEvent<T>

    • Constructor Detail

      • TreeGridDropEvent

        public TreeGridDropEvent​(TreeGrid<T> target,
                                 java.util.Map<java.lang.String,​java.lang.String> data,
                                 com.vaadin.shared.ui.dnd.DropEffect dropEffect,
                                 DragSourceExtension<? extends AbstractComponent> dragSourceExtension,
                                 T dropTargetRow,
                                 com.vaadin.shared.ui.grid.DropLocation dropLocation,
                                 com.vaadin.shared.MouseEventDetails mouseEventDetails,
                                 java.lang.Integer depth,
                                 java.lang.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 java.util.Optional<java.lang.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 java.util.Optional<java.lang.Boolean> isDropTargetRowCollapsed()
        Tells whether the drop target row is collapsed.
        Returns:
        true if the drop target row is collapsed, false otherwise