diff options
author | Artur Signell <artur@vaadin.com> | 2012-03-13 11:29:43 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-03-14 16:00:37 +0200 |
commit | 751d60aaf6b5dec813f5f7fe3d46717a0b1ca2ef (patch) | |
tree | 1e95a9de64853687c2f441a14f5e877ca9503e7b /src/com/vaadin/ui/AbstractComponentContainer.java | |
parent | e248adc283ccc79ef89f3f752cd0f516e09f8a2c (diff) | |
download | vaadin-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/AbstractComponentContainer.java')
-rw-r--r-- | src/com/vaadin/ui/AbstractComponentContainer.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/vaadin/ui/AbstractComponentContainer.java b/src/com/vaadin/ui/AbstractComponentContainer.java index bbe2c20ea5..20b79e8a06 100644 --- a/src/com/vaadin/ui/AbstractComponentContainer.java +++ b/src/com/vaadin/ui/AbstractComponentContainer.java @@ -372,4 +372,14 @@ public abstract class AbstractComponentContainer extends AbstractComponent } } + /** + * Returns an iterator for the child components. + * + * @return An iterator for the child components. + * @see #getComponentIterator() + * @since 7.0.0 + */ + public Iterator<Component> iterator() { + return getComponentIterator(); + } }
\ No newline at end of file |