Java com.vaadin.ui MenuBar fields, constructors, methods, implement or subclass

Example usage for Java com.vaadin.ui MenuBar fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.vaadin.ui MenuBar.

The text is from its open source code.

Subclass

com.vaadin.ui.MenuBar has subclasses.
Click this link to see all its subclasses.

Constructor

MenuBar()
Constructs an empty, horizontal menu.

Method

MenuBar.MenuItemaddItem(String caption, MenuBar.Command command)
Add a new item to the menu bar.
MenuBar.MenuItemaddItem(String caption, Resource icon, MenuBar.Command command)
Add a new item to the menu bar.
MenuBar.MenuItemaddItemBefore(String caption, Resource icon, MenuBar.Command command, MenuBar.MenuItem itemToAddBefore)
Add an item before some item.
voidaddStyleName(String style)
ListgetItems()
Returns a list with all the MenuItem objects in the menu bar.
MenuItemgetMoreMenuItem()
Get the MenuItem used as the collapse menu item.
intgetSize()
Returns the size of the menu.
voidremoveItem(MenuBar.MenuItem item)
Remove first occurrence the specified item from the main menu.
voidremoveItems()
Empty the menu bar.
voidsetAutoOpen(boolean autoOpenTopLevelMenu)
Using this method menubar can be put into a special mode where top level menus opens without clicking on the menu, but automatically when mouse cursor is moved over the menu.
voidsetCaption(String caption)
voidsetDebugId(String id)
voidsetDescription(String description)
Sets the component's description.
voidsetHeight(float height, Unit unit)
voidsetHtmlContentAllowed(boolean htmlContentAllowed)
Sets whether html is allowed in the item captions.
voidsetId(String id)
voidsetMoreMenuItem(MenuItem item)
Set the item that is used when collapsing the top level menu.
voidsetResponsive(boolean responsive)
Toggles responsiveness of this component.
voidsetSizeFull()
voidsetSizeUndefined()
voidsetStyleName(String style)
voidsetWidth(String width)
voidsetWidth(float width, Unit unit)