| Package | Description |
|---|---|
| com.vaadin.ui |
| Modifier and Type | Method and Description |
|---|---|
MenuBar.Command |
MenuBar.MenuItem.getCommand()
For the associated command.
|
| Modifier and Type | Method and Description |
|---|---|
MenuBar.MenuItem |
MenuBar.addItem(String caption,
MenuBar.Command command)
Add a new item to the menu bar.
|
MenuBar.MenuItem |
MenuBar.MenuItem.addItem(String caption,
MenuBar.Command command)
Add a new item inside this item, thus creating a sub-menu.
|
MenuBar.MenuItem |
MenuBar.addItem(String caption,
Resource icon,
MenuBar.Command command)
Add a new item to the menu bar.
|
MenuBar.MenuItem |
MenuBar.MenuItem.addItem(String caption,
Resource icon,
MenuBar.Command command)
Add a new item inside this item, thus creating a sub-menu.
|
MenuBar.MenuItem |
MenuBar.addItemBefore(String caption,
Resource icon,
MenuBar.Command command,
MenuBar.MenuItem itemToAddBefore)
Add an item before some item.
|
MenuBar.MenuItem |
MenuBar.MenuItem.addItemBefore(String caption,
Resource icon,
MenuBar.Command command,
MenuBar.MenuItem itemToAddBefore)
Add an item before some item.
|
void |
MenuBar.MenuItem.setCommand(MenuBar.Command command)
Set the command for this item.
|
| Constructor and Description |
|---|
MenuItem(String caption,
Resource icon,
MenuBar.Command command)
Constructs a new menu item that can optionally have an icon and a
command associated with it.
|
Copyright © 2016 Vaadin Ltd. All rights reserved.