com.vaadin.event.dd
Class DragAndDropEvent

java.lang.Object
  extended by 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 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

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


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.