]> source.dussan.org Git - vaadin-framework.git/commitdiff
Paintable from client side can now be transmitted to server as a variable (will map...
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 16 Apr 2009 12:15:01 +0000 (12:15 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 16 Apr 2009 12:15:01 +0000 (12:15 +0000)
svn changeset:7439/svn branch:6.0

src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java
src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java

index f3541b5bb36d329eb1861ee41ca6badf8481a2c8..cb6874075c3483f522b01a4117791ca4d101ddb4 100755 (executable)
@@ -898,6 +898,12 @@ public class ApplicationConnection {
         makeUidlRequest(req.toString(), false, forceSync, false);
     }
 
+    public void updateVariable(String paintableId, String variableName,
+            Paintable newValue, boolean immediate) {
+        String pid = (newValue != null) ? getPid(newValue) : null;
+        addVariableToQueue(paintableId, variableName, pid, immediate, 'p');
+    }
+
     public void updateVariable(String paintableId, String variableName,
             String newValue, boolean immediate) {
         addVariableToQueue(paintableId, variableName, newValue, immediate, 's');
index cfedb42dc4edbf3db29b9e9e49360892967d74a7..0b9270136394de9ac9a4db4f84ca08792272fff9 100644 (file)
@@ -867,6 +867,9 @@ public class CommunicationManager implements Paintable.RepaintRequestListener,
         case 'b':
             val = Boolean.valueOf(strValue);
             break;
+        case 'p':
+            val = idPaintableMap.get(strValue);
+            break;
         }
 
         return val;