com.vaadin.event.dd
Class DragAndDropEvent
java.lang.Object
com.vaadin.event.dd.DragAndDropEvent
- All Implemented Interfaces:
- java.io.Serializable
public class DragAndDropEvent
- extends java.lang.Object
- implements java.io.Serializable
DragAndDropEvent wraps information related to drag and drop operation. It is
passed by terminal implementation for
DropHandler.drop(DragAndDropEvent)
and
AcceptCriterion.accept(DragAndDropEvent)
methods.
DragAndDropEvent instances contains both the dragged data in
Transferable
(generated by DragSource
and details about the
current drop event in TargetDetails
(generated by DropTarget
.
- Since:
- 6.3
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DragAndDropEvent
public DragAndDropEvent(Transferable transferable,
TargetDetails dropTargetDetails)
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
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.