From 726afd5642e4538c30fca7650e07ba57584195de Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Thu, 9 Feb 2017 09:53:52 +0200 Subject: Clarify addComponentsAndExpand javadocs (#8516) --- server/src/main/java/com/vaadin/ui/HorizontalLayout.java | 4 ++++ server/src/main/java/com/vaadin/ui/VerticalLayout.java | 4 ++++ 2 files changed, 8 insertions(+) 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. + *

+ * 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 null 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. + *

+ * 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 null -- cgit v1.2.3