diff options
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 |