From 8ff23ad10859132e5015f6372e623ed7ce8e05cc Mon Sep 17 00:00:00 2001 From: Adam Wagner Date: Wed, 7 Jun 2017 14:50:38 +0300 Subject: Add mouse event details to the drop event (#9485) Fixes #9483 --- shared/src/main/java/com/vaadin/shared/ui/dnd/DropTargetRpc.java | 6 +++++- .../src/main/java/com/vaadin/shared/ui/grid/GridDropTargetRpc.java | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'shared/src') diff --git a/shared/src/main/java/com/vaadin/shared/ui/dnd/DropTargetRpc.java b/shared/src/main/java/com/vaadin/shared/ui/dnd/DropTargetRpc.java index 2d475f51e7..eb53d1e9e7 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/dnd/DropTargetRpc.java +++ b/shared/src/main/java/com/vaadin/shared/ui/dnd/DropTargetRpc.java @@ -18,6 +18,7 @@ package com.vaadin.shared.ui.dnd; import java.util.List; import java.util.Map; +import com.vaadin.shared.MouseEventDetails; import com.vaadin.shared.communication.ServerRpc; /** @@ -39,7 +40,10 @@ public interface DropTargetRpc extends ServerRpc { * DataTransfer} object. * @param dropEffect * The desired drop effect. + * @param mouseEventDetails + * mouse event details object containing information about the drop + * event */ public void drop(List types, Map data, - String dropEffect); + String dropEffect, MouseEventDetails mouseEventDetails); } diff --git a/shared/src/main/java/com/vaadin/shared/ui/grid/GridDropTargetRpc.java b/shared/src/main/java/com/vaadin/shared/ui/grid/GridDropTargetRpc.java index 1e1242be5a..8309608ca6 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/grid/GridDropTargetRpc.java +++ b/shared/src/main/java/com/vaadin/shared/ui/grid/GridDropTargetRpc.java @@ -18,6 +18,7 @@ package com.vaadin.shared.ui.grid; import java.util.List; import java.util.Map; +import com.vaadin.shared.MouseEventDetails; import com.vaadin.shared.communication.ServerRpc; /** @@ -43,8 +44,11 @@ public interface GridDropTargetRpc extends ServerRpc { * Key of the row on which the drop event occured. * @param dropLocation * Location of the drop within the row. + * @param mouseEventDetails + * Mouse event details object containing information about the drop + * event */ public void drop(List types, Map data, String dropEffect, String rowKey, - DropLocation dropLocation); + DropLocation dropLocation, MouseEventDetails mouseEventDetails); } -- cgit v1.2.3