summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/AbstractSingleComponentContainer.java
diff options
context:
space:
mode:
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);