aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/HasComponents.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-03-13 11:29:43 +0200
committerArtur Signell <artur@vaadin.com>2012-03-14 16:00:37 +0200
commit751d60aaf6b5dec813f5f7fe3d46717a0b1ca2ef (patch)
tree1e95a9de64853687c2f441a14f5e877ca9503e7b /src/com/vaadin/ui/HasComponents.java
parente248adc283ccc79ef89f3f752cd0f516e09f8a2c (diff)
downloadvaadin-framework-751d60aaf6b5dec813f5f7fe3d46717a0b1ca2ef.tar.gz
vaadin-framework-751d60aaf6b5dec813f5f7fe3d46717a0b1ca2ef.zip
#8500, #3557 Added HasComponents (Iterable<Component>) that must be
implemented by all components containing components. This might still change when #2924/#2527 is fixed
Diffstat (limited to 'src/com/vaadin/ui/HasComponents.java')
-rw-r--r--src/com/vaadin/ui/HasComponents.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/com/vaadin/ui/HasComponents.java b/src/com/vaadin/ui/HasComponents.java
new file mode 100644
index 0000000000..e6f71fb3ed
--- /dev/null
+++ b/src/com/vaadin/ui/HasComponents.java
@@ -0,0 +1,24 @@
+package com.vaadin.ui;
+
+import java.util.Iterator;
+
+/**
+ * Interface that must be implemented by all {@link Component}s that contain
+ * other {@link Component}s.
+ *
+ * @author Vaadin Ltd
+ * @version @VERSION@
+ * @since 7.0.0
+ *
+ */
+public interface HasComponents extends Component, Iterable<Component> {
+ /**
+ * Gets an iterator to the collection of contained components. Using this
+ * iterator it is possible to step through all components contained in this
+ * container.
+ *
+ * @return the component iterator.
+ */
+ public Iterator<Component> getComponentIterator();
+
+}