summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/CssLayout.java
diff options
context:
space:
mode:
authorMatti Hosio <mhosio@vaadin.com>2014-12-12 13:04:31 +0200
committerMatti Hosio <mhosio@vaadin.com>2014-12-12 16:18:20 +0200
commita025d511bfe4e81993d33fc424a9bed754586a52 (patch)
tree46598f43edf5182fc0f867edc2fbcd01e50ecaea /server/src/com/vaadin/ui/CssLayout.java
parentc4aab1fe917b3cae5a41c8acc1e7cbea07700106 (diff)
downloadvaadin-framework-a025d511bfe4e81993d33fc424a9bed754586a52.tar.gz
vaadin-framework-a025d511bfe4e81993d33fc424a9bed754586a52.zip
Embed DesignSynchronizable methods to Component interface (#7749)
Change-Id: I06de4d2065dee107da40c2a4941e7d9e22f0832b
Diffstat (limited to 'server/src/com/vaadin/ui/CssLayout.java')
-rw-r--r--server/src/com/vaadin/ui/CssLayout.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/server/src/com/vaadin/ui/CssLayout.java b/server/src/com/vaadin/ui/CssLayout.java
index 33b8c9fcbc..0b4e9cda7b 100644
--- a/server/src/com/vaadin/ui/CssLayout.java
+++ b/server/src/com/vaadin/ui/CssLayout.java
@@ -377,8 +377,7 @@ public class CssLayout extends AbstractLayout implements LayoutClickNotifier {
removeAllComponents();
// handle children
for (Element childComponent : design.children()) {
- DesignSynchronizable newChild = designContext
- .createChild(childComponent);
+ Component newChild = designContext.createChild(childComponent);
addComponent(newChild);
}
}
@@ -397,8 +396,7 @@ public class CssLayout extends AbstractLayout implements LayoutClickNotifier {
// handle children
Element designElement = design;
for (Component child : this) {
- DesignSynchronizable childComponent = (DesignSynchronizable) child;
- Element childNode = designContext.createNode(childComponent);
+ Element childNode = designContext.createNode(child);
designElement.appendChild(childNode);
}
}