Example usage for com.vaadin.ui MenuBar setMoreMenuItem

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

Introduction

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

Prototype

public void setMoreMenuItem(MenuItem item) 

Source Link

Document

Set the item that is used when collapsing the top level menu.

Usage

From source file:org.vaadin.tori.util.ComponentUtil.java

License:Apache License

public static MenuBar getDropdownMenu() {
    final MenuBar result = new MenuBar();
    MenuItem rootItem = result.addItem("", null);
    result.setMoreMenuItem(rootItem);
    result.addStyleName("dropdown");
    return result;
}