List of usage examples for com.vaadin.ui TabSheet iterator
@Override
public Iterator<Component> iterator()
From source file:org.eclipse.hawkbit.ui.common.CommonDialogWindow.java
License:Open Source License
private static List<AbstractField<?>> getAllComponentsFromTabSheet(final TabSheet tabSheet) { final List<AbstractField<?>> components = new ArrayList<>(); for (final Iterator<Component> i = tabSheet.iterator(); i.hasNext();) { final Component component = i.next(); if (component instanceof AbstractLayout) { components.addAll(getAllComponents((AbstractLayout) component)); }/* w w w. ja v a 2 s. c o m*/ } return components; }