summaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/terminal/gwt
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2009-04-16 12:15:01 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2009-04-16 12:15:01 +0000
commitcc8293321a7932a6ab7c8ed99c33cd53b892abc9 (patch)
treec6aea9dd9952f5b2aa74c4ff0c362ddb16185221 /src/com/itmill/toolkit/terminal/gwt
parent7271aabb80c0e65caf7271f7c25856b220cfde5d (diff)
downloadvaadin-framework-cc8293321a7932a6ab7c8ed99c33cd53b892abc9.tar.gz
vaadin-framework-cc8293321a7932a6ab7c8ed99c33cd53b892abc9.zip
Paintable from client side can now be transmitted to server as a variable (will map to corresponding server side component)
svn changeset:7439/svn branch:6.0
Diffstat (limited to 'src/com/itmill/toolkit/terminal/gwt')
-rwxr-xr-xsrc/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java6
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java b/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java
index f3541b5bb3..cb6874075c 100755
--- a/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java
@@ -899,6 +899,12 @@ public class ApplicationConnection {
}
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');
}
diff --git a/src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java b/src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java
index cfedb42dc4..0b92701363 100644
--- a/src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java
+++ b/src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java
@@ -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;