We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.event.dd.
Class DragAndDropEvent
java.lang.Object
com.vaadin.event.dd.DragAndDropEvent
All Implemented Interfaces:
- extends Object
- implements Serializable
public class DragAndDropEvent
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:
Constructor Summary | |
---|---|
DragAndDropEvent(Transferable transferable,
TargetDetails dropTargetDetails)
|
Method Summary | |
---|---|
TargetDetails |
getTargetDetails()
|
Transferable |
getTransferable()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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