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/AbstractOrderedLayout.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/AbstractOrderedLayout.java')
-rw-r--r-- | server/src/com/vaadin/ui/AbstractOrderedLayout.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/AbstractOrderedLayout.java b/server/src/com/vaadin/ui/AbstractOrderedLayout.java index fb345d30ec..cb3d9cfe9f 100644 --- a/server/src/com/vaadin/ui/AbstractOrderedLayout.java +++ b/server/src/com/vaadin/ui/AbstractOrderedLayout.java @@ -56,7 +56,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements /* Child component alignments */ /** - * Mapping from components to alignments (horizontal + vertical). + * Constructs an empty AbstractOrderedLayout. */ public AbstractOrderedLayout() { registerRpc(rpc); @@ -113,6 +113,18 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements } /** + * Adds the given components in the given order to the container. + * + * @param components + * The components to add. + */ + public void addComponents(Component... components) { + for (Component c : components) { + addComponent(c); + } + } + + /** * Adds a component into indexed position in this container. * * @param c |