public class DragAndDropHandler extends Object
Grid column
header reordering.
The showing of the dragged element, drag hints and reacting to drop/cancel is
delegated to DragAndDropHandler.DragAndDropCallback implementation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DragAndDropHandler.DragAndDropCallback
Callback interface for drag and drop.
|
| Constructor and Description |
|---|
DragAndDropHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
onDragStartOnDraggableElement(com.google.gwt.dom.client.NativeEvent dragStartingEvent,
DragAndDropHandler.DragAndDropCallback callback)
This method can be called to trigger drag and drop on any grid element
that can be dragged and dropped.
|
public void onDragStartOnDraggableElement(com.google.gwt.dom.client.NativeEvent dragStartingEvent,
DragAndDropHandler.DragAndDropCallback callback)
dragStartingEvent - the drag triggering event, usually a Event.ONMOUSEDOWN
or Event.ONTOUCHSTART event on the draggable elementcallback - the callback that will handle actual drag and drop related
operationsCopyright © 2021 Vaadin Ltd. All rights reserved.