T - The TreeGrid bean type.public class TreeGridDropEvent<T> extends GridDropEvent<T>
TreeGrid row.TreeGridDropTarget.addTreeGridDropListener(TreeGridDropListener),
Serialized Formsource| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Integer> |
getDropTargetRowDepth()
Gets the depth of the drop target row in the hierarchy.
|
Optional<Boolean> |
isDropTargetRowCollapsed()
Tells whether the drop target row is collapsed.
|
getDropLocation, getDropTargetRowgetComponent, getDataTransferData, getDataTransferData, getDataTransferText, getDragData, getDragSourceComponent, getDragSourceExtension, getDropEffect, getMouseEventDetailsgetConnectorgetSource, toStringpublic TreeGridDropEvent(TreeGrid<T> target, Map<String,String> data, DropEffect dropEffect, DragSourceExtension<? extends AbstractComponent> dragSourceExtension, T dropTargetRow, DropLocation dropLocation, MouseEventDetails mouseEventDetails, Integer depth, Boolean collapsed)
target - TreeGrid that received the drop.data - Map containing all types and corresponding data from the
DataTransfer object.dropEffect - the desired drop effectdragSourceExtension - Drag source extension of the component that initiated the drop
event.dropTargetRow - Target row that received the drop, or null if dropped
on empty griddropLocation - Location of the drop within the target row.mouseEventDetails - Mouse event details object containing information about the
drop eventdepth - depth of the row in the hierarchycollapsed - whether the target row is collapsedCopyright © 2022 Vaadin Ltd. All rights reserved.