List of usage examples for com.vaadin.ui GridLayout getComponentIterator
@Deprecated
@Override
public Iterator<Component> getComponentIterator()
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; } } } }