summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/AbstractSingleComponentContainer.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/AbstractSingleComponentContainer.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/AbstractSingleComponentContainer.java')
-rw-r--r--server/src/com/vaadin/ui/AbstractSingleComponentContainer.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/AbstractSingleComponentContainer.java b/server/src/com/vaadin/ui/AbstractSingleComponentContainer.java
index c6e78447d5..6c8d4fcde2 100644
--- a/server/src/com/vaadin/ui/AbstractSingleComponentContainer.java
+++ b/server/src/com/vaadin/ui/AbstractSingleComponentContainer.java
@@ -299,8 +299,7 @@ public abstract class AbstractSingleComponentContainer extends
+ " can have only one child component.");
} else if (childCount == 1) {
Element childElement = design.children().get(0);
- DesignSynchronizable newChild = designContext
- .createChild(childElement);
+ Component newChild = designContext.createChild(childElement);
setContent(newChild);
} else {
setContent(null);
@@ -319,7 +318,7 @@ public abstract class AbstractSingleComponentContainer extends
// synchronize default attributes (also clears children and attributes)
super.synchronizeToDesign(design, designContext);
// handle child component
- DesignSynchronizable child = (DesignSynchronizable) getContent();
+ Component child = getContent();
if (child != null) {
Element childNode = designContext.createNode(child);
design.appendChild(childNode);