Example usage for com.vaadin.ui TabSheet iterator

List of usage examples for com.vaadin.ui TabSheet iterator

Introduction

In this page you can find the example usage for com.vaadin.ui TabSheet iterator.

Prototype


@Override
public Iterator<Component> iterator() 

Source Link

Document

Gets the component container iterator for going through all the components (tab contents).

Usage

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;
}