diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2012-10-29 15:43:31 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2012-10-30 09:47:47 +0000 |
commit | 2364f3ec9fca600a5e926040ad3653de84bfed7d (patch) | |
tree | b2b4179704714c2428ad201bde1cfa2945f70369 /server/src/com/vaadin/ui/Form.java | |
parent | f75f47f2f275d03791677244e11646409099d41d (diff) | |
download | vaadin-framework-2364f3ec9fca600a5e926040ad3653de84bfed7d.tar.gz vaadin-framework-2364f3ec9fca600a5e926040ad3653de84bfed7d.zip |
Move deprecated getComponentIterator() from HasComponents to implementing classes (#10085)
Change-Id: Iedcb7b51f6d2a095b402a7141dc906b112ee6fe7
Diffstat (limited to 'server/src/com/vaadin/ui/Form.java')
-rw-r--r-- | server/src/com/vaadin/ui/Form.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/Form.java b/server/src/com/vaadin/ui/Form.java index 4b7782e0a9..46a335669e 100644 --- a/server/src/com/vaadin/ui/Form.java +++ b/server/src/com/vaadin/ui/Form.java @@ -1306,7 +1306,7 @@ public class Form extends AbstractField<Object> implements Item.Editor, @Override public Iterator<Component> iterator() { - return getComponentIterator(); + return new ComponentIterator(); } /** @@ -1355,9 +1355,12 @@ public class Form extends AbstractField<Object> implements Item.Editor, } } - @Override + /** + * @deprecated As of 7.0, use {@link #iterator()} instead. + */ + @Deprecated public Iterator<Component> getComponentIterator() { - return new ComponentIterator(); + return iterator(); } public int getComponentCount() { |