List of usage examples for com.vaadin.ui MenuBar setAutoOpen
public void setAutoOpen(boolean autoOpenTopLevelMenu)
From source file:com.expressui.core.view.menu.MenuBarNode.java
License:Open Source License
MenuBar createMenuBar() { MenuBar menuBar = new MenuBar(); menuBar.setSizeUndefined();//from w w w .j a v a 2s.c o m menuBar.setAutoOpen(true); menuBar.setHtmlContentAllowed(true); for (MenuBarNode child : children.values()) { if (child.isViewAllowed() && child.isVisible()) { MenuBar.MenuItem childMenuItem = menuBar.addItem(child.caption, child.command); child.populate(childMenuItem); } } return menuBar; }