aboutsummaryrefslogtreecommitdiffstats
path: root/client/src/com
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-08-14 15:06:05 +0300
committerArtur Signell <artur@vaadin.com>2012-08-14 15:07:17 +0300
commiteb51296d21be72954a0fea624519bcc66bb29f87 (patch)
treef808dea32efac8b39e9955cf89ca7e2171ea0c56 /client/src/com
parentd311548afbd09abb7219469266dd6b3b93f9980f (diff)
downloadvaadin-framework-eb51296d21be72954a0fea624519bcc66bb29f87.tar.gz
vaadin-framework-eb51296d21be72954a0fea624519bcc66bb29f87.zip
Removed depdencies from server to client (#9279)
Diffstat (limited to 'client/src/com')
-rw-r--r--client/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java28
1 files changed, 15 insertions, 13 deletions
diff --git a/client/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java b/client/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java
index bc98860716..225dd8ccda 100644
--- a/client/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java
+++ b/client/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java
@@ -22,6 +22,7 @@ import com.google.gwt.user.client.Event.NativePreviewHandler;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
+import com.vaadin.shared.ApplicationConstants;
import com.vaadin.shared.MouseEventDetails;
import com.vaadin.shared.ui.dd.DragEventType;
import com.vaadin.terminal.gwt.client.ApplicationConnection;
@@ -225,8 +226,6 @@ public class VDragAndDropManager {
}
- public static final String DD_SERVICE = "DD";
-
private static VDragAndDropManager instance;
private HandlerRegistration handlerRegistration;
private VDragEvent currentDrag;
@@ -598,17 +597,20 @@ public class VDragAndDropManager {
* Transferable is sent on each request)
*/
visitId++;
- client.updateVariable(DD_SERVICE, "visitId", visitId, false);
- client.updateVariable(DD_SERVICE, "eventId", currentDrag.getEventId(),
- false);
- client.updateVariable(DD_SERVICE, "dhowner", paintable, false);
+ client.updateVariable(ApplicationConstants.DRAG_AND_DROP_CONNECTOR_ID,
+ "visitId", visitId, false);
+ client.updateVariable(ApplicationConstants.DRAG_AND_DROP_CONNECTOR_ID,
+ "eventId", currentDrag.getEventId(), false);
+ client.updateVariable(ApplicationConstants.DRAG_AND_DROP_CONNECTOR_ID,
+ "dhowner", paintable, false);
VTransferable transferable = currentDrag.getTransferable();
- client.updateVariable(DD_SERVICE, "component",
- transferable.getDragSource(), false);
+ client.updateVariable(ApplicationConstants.DRAG_AND_DROP_CONNECTOR_ID,
+ "component", transferable.getDragSource(), false);
- client.updateVariable(DD_SERVICE, "type", drop.ordinal(), false);
+ client.updateVariable(ApplicationConstants.DRAG_AND_DROP_CONNECTOR_ID,
+ "type", drop.ordinal(), false);
if (currentDrag.getCurrentGwtEvent() != null) {
try {
@@ -624,11 +626,11 @@ public class VDragAndDropManager {
} else {
currentDrag.getDropDetails().put("mouseEvent", null);
}
- client.updateVariable(DD_SERVICE, "evt", currentDrag.getDropDetails(),
- false);
+ client.updateVariable(ApplicationConstants.DRAG_AND_DROP_CONNECTOR_ID,
+ "evt", currentDrag.getDropDetails(), false);
- client.updateVariable(DD_SERVICE, "tra", transferable.getVariableMap(),
- true);
+ client.updateVariable(ApplicationConstants.DRAG_AND_DROP_CONNECTOR_ID,
+ "tra", transferable.getVariableMap(), true);
}