Example usage for com.vaadin.ui GridLayout getComponentIterator

List of usage examples for com.vaadin.ui GridLayout getComponentIterator

Introduction

In this page you can find the example usage for com.vaadin.ui GridLayout getComponentIterator.

Prototype

@Deprecated
@Override
public Iterator<Component> getComponentIterator() 

Source Link

Usage

From source file:org.processbase.ui.bpm.generator.GeneratedWindow.java

License:Open Source License

private void commitPage(GridLayout page) {
    for (Iterator<Component> iterator = page.getComponentIterator(); iterator.hasNext();) {
        Component comp = iterator.next();
        if (comp instanceof AbstractField) {
            try {
                ((AbstractField) comp).setComponentError(null);
                ((AbstractField) comp).validate();
            } catch (InvalidValueException ex) {
                if (ex instanceof EmptyValueException) {
                    ((AbstractField) comp)
                            .setComponentError(new UserError(((AbstractField) comp).getRequiredError()));
                }/*from   w  w w. j  a  v  a  2 s .c  o  m*/
                throw ex;
            }

        }
    }
}