com.vaadin.client.ui.dd.
Interface VDropHandler
-
All Known Implementing Classes:
@Deprecated public interface VDropHandler
Deprecated.Replaced in 8.1 withDropListener
andDropTargetExtension
Vaadin Widgets that want to receive something via drag and drop implement this interface.
-
-
Method Summary
All Methods Modifier and Type Method Description void
dragEnter(VDragEvent dragEvent)
Deprecated.
Called by DragAndDropManager when a drag operation is in progress and the cursor enters the area occupied by this Paintable.
void
dragLeave(VDragEvent dragEvent)
Deprecated.
Called by DragAndDropManager when a drag operation is in progress and the cursor leaves the area occupied by this Paintable.
void
dragOver(VDragEvent currentDrag)
Deprecated.
When drag is over current drag handler.
boolean
drop(VDragEvent drag)
Deprecated.
Called by DragAndDropManager when a drag operation was in progress and a drop was performed on this Paintable.
ApplicationConnection
getApplicationConnection()
Deprecated.
Returns the application connection to which this
VDropHandler
belongs to.ComponentConnector
getConnector()
Deprecated.
Returns the ComponentConnector with which this DropHandler is associated.
-
-
-
Method Detail
-
dragEnter
void dragEnter(VDragEvent dragEvent)
Deprecated.Called by DragAndDropManager when a drag operation is in progress and the cursor enters the area occupied by this Paintable.
Parameters:
dragEvent
- DragEvent which contains the transferable and other information for the operation
-
dragLeave
void dragLeave(VDragEvent dragEvent)
Deprecated.Called by DragAndDropManager when a drag operation is in progress and the cursor leaves the area occupied by this Paintable.
Parameters:
dragEvent
- DragEvent which contains the transferable and other information for the operation
-
drop
boolean drop(VDragEvent drag)
Deprecated.Called by DragAndDropManager when a drag operation was in progress and a drop was performed on this Paintable.
Parameters:
drag
- VDragEvent which contains the transferable and other information for the operationReturns:
true if the Tranferrable of this drag event needs to be sent to the server, false if drop is rejected or no server side event should be sent
-
dragOver
void dragOver(VDragEvent currentDrag)
Deprecated.When drag is over current drag handler. With drag implementation by
VDragAndDropManager
will be called when mouse is moved. HTML5 implementations call this continuously even though mouse is not moved.Parameters:
currentDrag
- the latest drag event
-
getConnector
ComponentConnector getConnector()
Deprecated.Returns the ComponentConnector with which this DropHandler is associated.
Returns:
the connector
-
getApplicationConnection
ApplicationConnection getApplicationConnection()
Deprecated.Returns the application connection to which this
VDropHandler
belongs to. DragAndDropManager uses this function to send Transferable to server side.Returns:
the application connection
-
-