aboutsummaryrefslogtreecommitdiffstats
path: root/shared/src
diff options
context:
space:
mode:
authorAdam Wagner <wbadam@users.noreply.github.com>2017-06-07 14:50:38 +0300
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-06-07 14:50:38 +0300
commit8ff23ad10859132e5015f6372e623ed7ce8e05cc (patch)
tree92874f7b52ede7ac54526d8f3c40e5d4da825e69 /shared/src
parent3b3c647e5b732a7e9e6109193a11e665270ffe2f (diff)
downloadvaadin-framework-8ff23ad10859132e5015f6372e623ed7ce8e05cc.tar.gz
vaadin-framework-8ff23ad10859132e5015f6372e623ed7ce8e05cc.zip
Add mouse event details to the drop event (#9485)
Fixes #9483
Diffstat (limited to 'shared/src')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/dnd/DropTargetRpc.java6
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/grid/GridDropTargetRpc.java6
2 files changed, 10 insertions, 2 deletions
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<String> types, Map<String, String> 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<String> types, Map<String, String> data,
String dropEffect, String rowKey,
- DropLocation dropLocation);
+ DropLocation dropLocation, MouseEventDetails mouseEventDetails);
}