diff options
author | Matti Hosio <mhosio@vaadin.com> | 2014-12-12 13:04:31 +0200 |
---|---|---|
committer | Matti Hosio <mhosio@vaadin.com> | 2014-12-12 16:18:20 +0200 |
commit | a025d511bfe4e81993d33fc424a9bed754586a52 (patch) | |
tree | 46598f43edf5182fc0f867edc2fbcd01e50ecaea /server/src/com/vaadin/ui/AbsoluteLayout.java | |
parent | c4aab1fe917b3cae5a41c8acc1e7cbea07700106 (diff) | |
download | vaadin-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/AbsoluteLayout.java')
-rw-r--r-- | server/src/com/vaadin/ui/AbsoluteLayout.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/server/src/com/vaadin/ui/AbsoluteLayout.java b/server/src/com/vaadin/ui/AbsoluteLayout.java index c4c0de764f..7af22ba5c6 100644 --- a/server/src/com/vaadin/ui/AbsoluteLayout.java +++ b/server/src/com/vaadin/ui/AbsoluteLayout.java @@ -691,8 +691,7 @@ public class AbsoluteLayout extends AbstractLayout implements // handle children for (Element childComponent : design.children()) { Attributes attr = childComponent.attributes(); - DesignSynchronizable newChild = designContext - .createChild(childComponent); + Component newChild = designContext.createChild(childComponent); StringBuilder css = new StringBuilder(); if (attr.hasKey(ATTR_TOP)) { css.append("top:").append(attr.get(ATTR_TOP)).append(";"); @@ -727,10 +726,9 @@ public class AbsoluteLayout extends AbstractLayout implements // 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); - childComponent.synchronizeToDesign(childNode, designContext); + child.synchronizeToDesign(childNode, designContext); // handle position ComponentPosition position = getPosition(child); writePositionAttribute(childNode, ATTR_TOP, position.getTopUnits() |