summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/ComponentContainer.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-11-22 12:29:49 +0200
committerArtur Signell <artur@vaadin.com>2012-11-22 12:29:49 +0200
commitc19b1fee143f8dfeb681ba5c58d582c607ee48a6 (patch)
tree4be155f26ed7cab8ebc5401cf3610e1b023dc86a /server/src/com/vaadin/ui/ComponentContainer.java
parent7fb247173e34e445e13fcec76b30246be8799791 (diff)
downloadvaadin-framework-c19b1fee143f8dfeb681ba5c58d582c607ee48a6.tar.gz
vaadin-framework-c19b1fee143f8dfeb681ba5c58d582c607ee48a6.zip
Added ComponentContainer.addComponents (#10245)
Change-Id: Ie859d194456466424c55ef5e1c2a330f0172e5de
Diffstat (limited to 'server/src/com/vaadin/ui/ComponentContainer.java')
-rw-r--r--server/src/com/vaadin/ui/ComponentContainer.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/ComponentContainer.java b/server/src/com/vaadin/ui/ComponentContainer.java
index 5ef41d7cbf..5c544ceffb 100644
--- a/server/src/com/vaadin/ui/ComponentContainer.java
+++ b/server/src/com/vaadin/ui/ComponentContainer.java
@@ -21,9 +21,9 @@ import java.util.Iterator;
import com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier;
/**
- * Extension to the {@link Component} interface which adds to it the capacity to
- * contain other components. All UI elements that can have child elements
- * implement this interface.
+ * A special type of parent which allows the user to add and remove components
+ * to it. Typically does not have any restrictions on the number of children it
+ * can contain.
*
* @author Vaadin Ltd.
* @since 3.0
@@ -40,6 +40,14 @@ public interface ComponentContainer extends HasComponents,
public void addComponent(Component c);
/**
+ * Adds the components in the given order to this component container.
+ *
+ * @param components
+ * The components to add.
+ */
+ public void addComponents(Component... components);
+
+ /**
* Removes the component from this container.
*
* @param c