aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/CustomField.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/CustomField.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/CustomField.java')
-rw-r--r--src/com/vaadin/ui/CustomField.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/vaadin/ui/CustomField.java b/src/com/vaadin/ui/CustomField.java
index 5804c847af..5436cd0480 100644
--- a/src/com/vaadin/ui/CustomField.java
+++ b/src/com/vaadin/ui/CustomField.java
@@ -173,6 +173,10 @@ public abstract class CustomField<T> extends AbstractField<T> implements
return new ComponentIterator();
}
+ public Iterator<Component> iterator() {
+ return getComponentIterator();
+ }
+
public int getComponentCount() {
return (null != getContent()) ? 1 : 0;
}