List of usage examples for com.vaadin.ui MenuBar getMoreMenuItem
public MenuItem getMoreMenuItem()
From source file:org.vaadin.tori.component.Breadcrumbs.java
License:Apache License
private Component getSiblingMenuBar(final Category category) { final MenuBar menuBar = ComponentUtil.getDropdownMenu(); final MenuItem topItem = menuBar.getMoreMenuItem(); // Lazily populate the menubar ToriScheduler.get().scheduleDeferred(new ScheduledCommand() { @Override//from w w w. jav a 2 s . co m public void execute() { if (!topItem.hasChildren()) { populateSiblingMenu(topItem, category); } } }); return menuBar; }