aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui
diff options
context:
space:
mode:
authorMarkus Koivisto <markus@vaadin.com>2014-08-28 15:46:04 +0300
committerMarkus Koivisto <markus@vaadin.com>2014-08-28 15:47:39 +0300
commit1e8a4199fd40641b38c056bc391c98c6fcb2917b (patch)
treecd25a8a378a23af9cb666d44bc4d313cb88a1928 /server/src/com/vaadin/ui
parent53c826f3851e03af5f199c7736d8aa7f0b854a95 (diff)
downloadvaadin-framework-1e8a4199fd40641b38c056bc391c98c6fcb2917b.tar.gz
vaadin-framework-1e8a4199fd40641b38c056bc391c98c6fcb2917b.zip
Revert "Make getMouseEvent() method available in the TargetDetailsImpl (#13416)."
This reverts commit 9ea4409bbe7079887a5a3c497494d4986ddabefd. The commit fails its own tests on IE and Firefox. Change-Id: I443f8d1b9ce322124b19d74bbeb2e6780bbff201
Diffstat (limited to 'server/src/com/vaadin/ui')
-rw-r--r--server/src/com/vaadin/ui/Calendar.java3
-rw-r--r--server/src/com/vaadin/ui/DragAndDropWrapper.java9
2 files changed, 10 insertions, 2 deletions
diff --git a/server/src/com/vaadin/ui/Calendar.java b/server/src/com/vaadin/ui/Calendar.java
index 888a443be3..59dfceec9b 100644
--- a/server/src/com/vaadin/ui/Calendar.java
+++ b/server/src/com/vaadin/ui/Calendar.java
@@ -1430,7 +1430,7 @@ public class Calendar extends AbstractComponent implements
@Override
public TargetDetails translateDropTargetDetails(
Map<String, Object> clientVariables) {
- Map<String, Object> serverVariables = new HashMap<String, Object>();
+ Map<String, Object> serverVariables = new HashMap<String, Object>(1);
if (clientVariables.containsKey("dropSlotIndex")) {
int slotIndex = (Integer) clientVariables.get("dropSlotIndex");
@@ -1450,7 +1450,6 @@ public class Calendar extends AbstractComponent implements
currentCalendar.add(java.util.Calendar.DATE, dayIndex);
serverVariables.put("dropDay", currentCalendar.getTime());
}
- serverVariables.put("mouseEvent", clientVariables.get("mouseEvent"));
CalendarTargetDetails td = new CalendarTargetDetails(serverVariables,
this);
diff --git a/server/src/com/vaadin/ui/DragAndDropWrapper.java b/server/src/com/vaadin/ui/DragAndDropWrapper.java
index 6e4ec903d2..0e2e8f6d2f 100644
--- a/server/src/com/vaadin/ui/DragAndDropWrapper.java
+++ b/server/src/com/vaadin/ui/DragAndDropWrapper.java
@@ -132,6 +132,15 @@ public class DragAndDropWrapper extends CustomComponent implements DropTarget,
}
/**
+ * @return details about the actual event that caused the event details.
+ * Practically mouse move or mouse up.
+ */
+ public MouseEventDetails getMouseEvent() {
+ return MouseEventDetails
+ .deSerialize((String) getData("mouseEvent"));
+ }
+
+ /**
* @return a detail about the drags vertical position over the wrapper.
*/
public VerticalDropLocation getVerticalDropLocation() {