diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2012-09-07 16:31:16 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2012-09-07 17:12:24 +0300 |
commit | 1fb7d999a09bea25256eef0e9837523c7c81841f (patch) | |
tree | 62e239d911bdc064a07621a4b4203c54c7c11349 /server/src/com/vaadin/ui/VerticalLayout.java | |
parent | 544152d1adc3a098445f7b11b4651fcc3c2f13bc (diff) | |
download | vaadin-framework-1fb7d999a09bea25256eef0e9837523c7c81841f.tar.gz vaadin-framework-1fb7d999a09bea25256eef0e9837523c7c81841f.zip |
Commit Pekka's patch for #8030 ((Component...) constructor for layouts) and #5422 (addComponents(Component...) for layouts) with minor formatting/javadoc changes
Diffstat (limited to 'server/src/com/vaadin/ui/VerticalLayout.java')
-rw-r--r-- | server/src/com/vaadin/ui/VerticalLayout.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/VerticalLayout.java b/server/src/com/vaadin/ui/VerticalLayout.java index 0a13ca9a36..ba07603166 100644 --- a/server/src/com/vaadin/ui/VerticalLayout.java +++ b/server/src/com/vaadin/ui/VerticalLayout.java @@ -28,8 +28,24 @@ package com.vaadin.ui; @SuppressWarnings("serial") public class VerticalLayout extends AbstractOrderedLayout { + /** + * Constructs an empty VerticalLayout. + */ public VerticalLayout() { setWidth("100%"); } + /** + * Constructs a VerticalLayout with the given components. The components are + * added in the given order. + * + * @see AbstractOrderedLayout#addComponents(Component...) + * + * @param children + * The components to add. + */ + public VerticalLayout(Component... children) { + this(); + addComponents(children); + } } |