aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Åstrand <legioth@gmail.com>2017-02-09 09:53:52 +0200
committerHenri Sara <henri.sara@gmail.com>2017-02-09 09:53:52 +0200
commit726afd5642e4538c30fca7650e07ba57584195de (patch)
tree9695bbae2becfb1e36f5df4d88b0f0e0f9649c22
parent43600310195bdce4caa5c24e03227b9925e1934c (diff)
downloadvaadin-framework-726afd5642e4538c30fca7650e07ba57584195de.tar.gz
vaadin-framework-726afd5642e4538c30fca7650e07ba57584195de.zip
Clarify addComponentsAndExpand javadocs (#8516)
-rw-r--r--server/src/main/java/com/vaadin/ui/HorizontalLayout.java4
-rw-r--r--server/src/main/java/com/vaadin/ui/VerticalLayout.java4
2 files changed, 8 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/ui/HorizontalLayout.java b/server/src/main/java/com/vaadin/ui/HorizontalLayout.java
index ccee900ca1..95edc69e61 100644
--- a/server/src/main/java/com/vaadin/ui/HorizontalLayout.java
+++ b/server/src/main/java/com/vaadin/ui/HorizontalLayout.java
@@ -65,6 +65,10 @@ public class HorizontalLayout extends AbstractOrderedLayout {
* width of all added child components are set to 100% so that the expansion
* will be effective. The width of this layout is also set to 100% if it is
* currently undefined.
+ * <p>
+ * The components are added in the provided order to the end of this layout.
+ * Any components that are already children of this layout will be moved to
+ * new positions.
*
* @param components
* the components to set, not <code>null</code>
diff --git a/server/src/main/java/com/vaadin/ui/VerticalLayout.java b/server/src/main/java/com/vaadin/ui/VerticalLayout.java
index 5d8bda3b4c..b012d46aa8 100644
--- a/server/src/main/java/com/vaadin/ui/VerticalLayout.java
+++ b/server/src/main/java/com/vaadin/ui/VerticalLayout.java
@@ -68,6 +68,10 @@ public class VerticalLayout extends AbstractOrderedLayout {
* height of all added child components are set to 100% so that the
* expansion will be effective. The height of this layout is also set to
* 100% if it is currently undefined.
+ * <p>
+ * The components are added in the provided order to the end of this layout.
+ * Any components that are already children of this layout will be moved to
+ * new positions.
*
* @param components
* the components to set, not <code>null</code>