summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2013-01-09 13:29:43 +0000
committerVaadin Code Review <review@vaadin.com>2013-01-09 13:29:43 +0000
commit1a20331682f4495509fa79ad54c96fe77de82eed (patch)
tree3cda9d21f924fca4d94fdaf47bac9f089d576f6b /server/src/com/vaadin
parentf189b74a6a96dccc76ae37667a2790f530c462f3 (diff)
parent80246426e62c6b2499be6eb705dd287483bf5164 (diff)
downloadvaadin-framework-1a20331682f4495509fa79ad54c96fe77de82eed.tar.gz
vaadin-framework-1a20331682f4495509fa79ad54c96fe77de82eed.zip
Merge "Merge of (#10073) to Vaadin 7."
Diffstat (limited to 'server/src/com/vaadin')
-rw-r--r--server/src/com/vaadin/ui/DragAndDropWrapper.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/server/src/com/vaadin/ui/DragAndDropWrapper.java b/server/src/com/vaadin/ui/DragAndDropWrapper.java
index 23641f285e..6c6aa3c3f4 100644
--- a/server/src/com/vaadin/ui/DragAndDropWrapper.java
+++ b/server/src/com/vaadin/ui/DragAndDropWrapper.java
@@ -58,7 +58,7 @@ public class DragAndDropWrapper extends CustomComponent implements DropTarget,
(String) rawVariables.get("ft" + i)); // mime
String id = (String) rawVariables.get("fi" + i);
files[i] = file;
- receivers.put(id, file);
+ receivers.put(id, new ProxyReceiver(id, file));
markAsDirty(); // paint Receivers
}
}
@@ -106,7 +106,7 @@ public class DragAndDropWrapper extends CustomComponent implements DropTarget,
}
- private Map<String, Html5File> receivers = new HashMap<String, Html5File>();
+ private Map<String, ProxyReceiver> receivers = new HashMap<String, ProxyReceiver>();
public class WrapperTargetDetails extends TargetDetailsImpl {
@@ -222,11 +222,12 @@ public class DragAndDropWrapper extends CustomComponent implements DropTarget,
getDropHandler().getAcceptCriterion().paint(target);
}
if (receivers != null && receivers.size() > 0) {
- for (Iterator<Entry<String, Html5File>> it = receivers.entrySet()
- .iterator(); it.hasNext();) {
- Entry<String, com.vaadin.ui.Html5File> entry = it.next();
+ for (Iterator<Entry<String, ProxyReceiver>> it = receivers
+ .entrySet().iterator(); it.hasNext();) {
+ Entry<String, ProxyReceiver> entry = it.next();
String id = entry.getKey();
- Html5File html5File = entry.getValue();
+ ProxyReceiver proxyReceiver = entry.getValue();
+ Html5File html5File = proxyReceiver.file;
if (html5File.getStreamVariable() != null) {
target.addVariable(this, "rec-" + id, new ProxyReceiver(id,
html5File));