|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VDropHandler
Vaadin Widgets that want to receive something via drag and drop implement this interface.
Method Summary | |
---|---|
void |
dragEnter(VDragEvent dragEvent)
Called by DragAndDropManager when a drag operation is in progress and the cursor enters the area occupied by this Paintable. |
void |
dragLeave(VDragEvent dragEvent)
Called by DragAndDropManager when a drag operation is in progress and the cursor leaves the area occupied by this Paintable. |
void |
dragOver(VDragEvent currentDrag)
When drag is over current drag handler. |
boolean |
drop(VDragEvent drag)
Called by DragAndDropManager when a drag operation was in progress and a drop was performed on this Paintable. |
ApplicationConnection |
getApplicationConnection()
Returns the application connection to which this VDropHandler
belongs to. |
ComponentConnector |
getConnector()
Returns the ComponentConnector with which this DropHandler is associated |
Method Detail |
---|
void dragEnter(VDragEvent dragEvent)
dragEvent
- DragEvent which contains the transferable and other
information for the operationvoid dragLeave(VDragEvent dragEvent)
dragEvent
- DragEvent which contains the transferable and other
information for the operationboolean drop(VDragEvent drag)
dragEvent
- DragEvent which contains the transferable and other
information for the operation
void dragOver(VDragEvent currentDrag)
VDragAndDropManager
will be called
when mouse is moved. HTML5 implementations call this continuously even
though mouse is not moved.
currentDrag
- ComponentConnector getConnector()
ApplicationConnection getApplicationConnection()
VDropHandler
belongs to. DragAndDropManager uses this fucction to send Transferable to
server side.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |