aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/AbstractOrderedLayout.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2014-12-15 23:07:42 +0200
committerArtur Signell <artur@vaadin.com>2014-12-15 23:12:14 +0200
commit10b30728e94ecfc19208dc387f5dbd7b9b6f71b1 (patch)
tree9c20e5ba80e57143ddbcbaa20a87cbb259f89b3c /server/src/com/vaadin/ui/AbstractOrderedLayout.java
parent353206974a542d0aadc278dea4adeff226fb3a9e (diff)
downloadvaadin-framework-10b30728e94ecfc19208dc387f5dbd7b9b6f71b1.tar.gz
vaadin-framework-10b30728e94ecfc19208dc387f5dbd7b9b6f71b1.zip
createNode -> createElement
Change-Id: Ifb7342a860fa73d51dc462b788a4530abb0bb52f
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractOrderedLayout.java')
-rw-r--r--server/src/com/vaadin/ui/AbstractOrderedLayout.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/src/com/vaadin/ui/AbstractOrderedLayout.java b/server/src/com/vaadin/ui/AbstractOrderedLayout.java
index b105d53fce..c347449ab8 100644
--- a/server/src/com/vaadin/ui/AbstractOrderedLayout.java
+++ b/server/src/com/vaadin/ui/AbstractOrderedLayout.java
@@ -545,26 +545,26 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
}
for (Component child : this) {
- Element childNode = designContext.createNode(child);
- designElement.appendChild(childNode);
+ Element childElement = designContext.createElement(child);
+ designElement.appendChild(childElement);
// handle alignment
Alignment alignment = getComponentAlignment(child);
if (alignment.isMiddle()) {
- childNode.attr(":middle", "");
+ childElement.attr(":middle", "");
} else if (alignment.isBottom()) {
- childNode.attr(":bottom", "");
+ childElement.attr(":bottom", "");
}
if (alignment.isCenter()) {
- childNode.attr(":center", "");
+ childElement.attr(":center", "");
} else if (alignment.isRight()) {
- childNode.attr(":right", "");
+ childElement.attr(":right", "");
}
// handle expand ratio
float expandRatio = getExpandRatio(child);
if (expandRatio == 1.0f) {
- childNode.attr(":expand", "");
+ childElement.attr(":expand", "");
} else if (expandRatio > 0) {
- childNode.attr(":expand",
+ childElement.attr(":expand",
DesignAttributeHandler.formatFloat(expandRatio));
}
}