summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/AbstractOrderedLayout.java
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2012-09-07 16:31:16 +0300
committerJohannes Dahlström <johannesd@vaadin.com>2012-09-07 17:12:24 +0300
commit1fb7d999a09bea25256eef0e9837523c7c81841f (patch)
tree62e239d911bdc064a07621a4b4203c54c7c11349 /server/src/com/vaadin/ui/AbstractOrderedLayout.java
parent544152d1adc3a098445f7b11b4651fcc3c2f13bc (diff)
downloadvaadin-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.java14
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