Example usage for com.vaadin.ui MenuBar getMoreMenuItem

List of usage examples for com.vaadin.ui MenuBar getMoreMenuItem

Introduction

In this page you can find the example usage for com.vaadin.ui MenuBar getMoreMenuItem.

Prototype

public MenuItem getMoreMenuItem() 

Source Link

Document

Get the MenuItem used as the collapse menu item.

Usage

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;
}