Package com.vaadin.event.dd
Class DragAndDropEvent
- java.lang.Object
-
- com.vaadin.event.dd.DragAndDropEvent
-
- All Implemented Interfaces:
Serializable
public class DragAndDropEvent extends Object implements Serializable
DragAndDropEvent wraps information related to drag and drop operation. It is passed by terminal implementation forDropHandler.drop(DragAndDropEvent)
andAcceptCriterion.accept(DragAndDropEvent)
methods.DragAndDropEvent instances contains both the dragged data in
Transferable
(generated byDragSource
and details about the current drop event inTargetDetails
(generated byDropTarget
.- Since:
- 6.3
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DragAndDropEvent(Transferable transferable, TargetDetails dropTargetDetails)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetDetails
getTargetDetails()
Transferable
getTransferable()
-
-
-
Constructor Detail
-
DragAndDropEvent
public DragAndDropEvent(Transferable transferable, TargetDetails dropTargetDetails)
-
-
Method Detail
-
getTransferable
public Transferable getTransferable()
- Returns:
- the Transferable instance representing the data dragged in this drag and drop event
-
getTargetDetails
public TargetDetails getTargetDetails()
- Returns:
- the TargetDetails containing drop target related details of drag and drop operation
-
-