Browse Source

Clarify addComponentsAndExpand javadocs (#8516)

tags/8.0.0.rc1
Leif Åstrand 7 years ago
parent
commit
726afd5642

+ 4
- 0
server/src/main/java/com/vaadin/ui/HorizontalLayout.java View File

@@ -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>

+ 4
- 0
server/src/main/java/com/vaadin/ui/VerticalLayout.java View File

@@ -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>

Loading…
Cancel
Save