diff options
author | Artur Signell <artur@vaadin.com> | 2012-11-22 12:29:49 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-11-22 12:29:49 +0200 |
commit | c19b1fee143f8dfeb681ba5c58d582c607ee48a6 (patch) | |
tree | 4be155f26ed7cab8ebc5401cf3610e1b023dc86a /server/src/com/vaadin/ui/AbstractComponentContainer.java | |
parent | 7fb247173e34e445e13fcec76b30246be8799791 (diff) | |
download | vaadin-framework-c19b1fee143f8dfeb681ba5c58d582c607ee48a6.tar.gz vaadin-framework-c19b1fee143f8dfeb681ba5c58d582c607ee48a6.zip |
Added ComponentContainer.addComponents (#10245)
Change-Id: Ie859d194456466424c55ef5e1c2a330f0172e5de
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractComponentContainer.java')
-rw-r--r-- | server/src/com/vaadin/ui/AbstractComponentContainer.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/AbstractComponentContainer.java b/server/src/com/vaadin/ui/AbstractComponentContainer.java index b5cc3da861..135194f12c 100644 --- a/server/src/com/vaadin/ui/AbstractComponentContainer.java +++ b/server/src/com/vaadin/ui/AbstractComponentContainer.java @@ -43,6 +43,19 @@ public abstract class AbstractComponentContainer extends AbstractComponent super(); } + /* + * (non-Javadoc) + * + * @see + * com.vaadin.ui.ComponentContainer#addComponents(com.vaadin.ui.Component[]) + */ + @Override + public void addComponents(Component... components) { + for (Component c : components) { + addComponent(c); + } + } + /** * Removes all components from the container. This should probably be * re-implemented in extending classes for a more powerful implementation. |