Iterable

Hi,

Since Vaadin 7 requires java 1.6 or later, and doesn’t have to be compatible with 1.4 anymore, it would be nice if ComponentContainer would extend Iterable. The method getComponentIterator() could then be deprecated and its implementations could call iterator() for the time being.

This would make code that traverses the component tree much prettier, by using the for-each loop.

Herman

A good idea but you are a bit late to the party. Vaadin 7.0.0 already does these things the way you describe it.

Ah great :slight_smile: It seems I was looking at an online javadoc for 6.7 instead of 7.