Interface HasComponents

All Superinterfaces:
Iterable<com.vaadin.flow.component.Component>
All Known Subinterfaces:
ComponentContainer, Layout, SingleComponentContainer
All Known Implementing Classes:
AbsoluteLayout, AbstractComponentContainer, AbstractLayout, AbstractOrderedLayout, AbstractSingleComponentContainer, FormLayout, GridLayout, HorizontalLayout, Panel, VerticalLayout

public interface HasComponents extends Iterable<com.vaadin.flow.component.Component>
Interface that must be implemented by all legacy framework AbstractComponents that contain other AbstractComponents and Flow's Components.
Author:
Vaadin Ltd
  • Method Details

    • iterator

      Iterator<com.vaadin.flow.component.Component> iterator()
      Gets an iterator to the collection of contained components. Using this iterator it is possible to step through all components contained in this container.

      The iterator is typically unmodifiable, and calls to Iterator.remove() throw an exception.

      Specified by:
      iterator in interface Iterable<com.vaadin.flow.component.Component>
      Returns:
      the component iterator.