summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authormaxschuster <dev@maxschuster.eu>2016-02-22 00:10:21 +0100
committerVaadin Code Review <review@vaadin.com>2016-03-01 13:16:02 +0000
commit81aadbb9edeb4a57dd02c35937905e5427a674e0 (patch)
tree179ad1ef914d85ac90875911f915370a59032de1 /shared
parentb7cb84e5b1165a913b054afa0f8bdc369cd2c031 (diff)
downloadvaadin-framework-81aadbb9edeb4a57dd02c35937905e5427a674e0.tar.gz
vaadin-framework-81aadbb9edeb4a57dd02c35937905e5427a674e0.zip
Fix DragAndDropWrapper update after file upload (#19616)
After a file has been uploaded VDragAndDropWrapper tries to pull changes from the server by calling ApplicationConnection.sendPendingVariableChanges() which has no effect. This change replaces the ApplicationConnection.sendPendingVariableChanges() call with an RPC. Change-Id: Ibdf7f4d702add9507dbe54c1fdb402f0f4b19d19
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/ui/draganddropwrapper/DragAndDropWrapperServerRpc.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/draganddropwrapper/DragAndDropWrapperServerRpc.java b/shared/src/com/vaadin/shared/ui/draganddropwrapper/DragAndDropWrapperServerRpc.java
new file mode 100644
index 0000000000..d5100aba3f
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/draganddropwrapper/DragAndDropWrapperServerRpc.java
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2000-2014 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.shared.ui.draganddropwrapper;
+
+import com.vaadin.shared.communication.ServerRpc;
+
+/**
+ * RPC interface for calls from client to server.
+ *
+ * @since
+ * @author Vaadin Ltd
+ */
+public interface DragAndDropWrapperServerRpc extends ServerRpc {
+
+ /**
+ * Called to poll the server to see if any changes have been made e.g. when
+ * the upload is complete.
+ *
+ * @since
+ */
+ public void poll();
+
+}