Example usage for com.vaadin.ui CssLayout iterator

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

Introduction

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

Prototype

@Override
public Iterator<Component> iterator() 

Source Link

Document

Gets the component container iterator for going trough all the components in the container.

Usage

From source file:fr.amapj.view.engine.menu.MenuPart.java

License:Open Source License

/**
 * /*from   ww  w  .j a  va  2  s.com*/
 * @param viewName du style /xxxx
 */
private void setSelected(Button b, CssLayout menuItemsLayout) {
    for (final Iterator<Component> it = menuItemsLayout.iterator(); it.hasNext();) {
        it.next().removeStyleName("selected");
    }

    // b peut etre null dans le cas du error view provider 
    if (b != null) {
        b.addStyleName("selected");
    }
}