Example usage for Java com.vaadin.ui MenuBar fields, constructors, methods, implement or subclass
The text is from its open source code.
MenuBar() Constructs an empty, horizontal menu. |
MenuBar.MenuItem | addItem(String caption, MenuBar.Command command) Add a new item to the menu bar. |
MenuBar.MenuItem | addItem(String caption, Resource icon, MenuBar.Command command) Add a new item to the menu bar. |
MenuBar.MenuItem | addItemBefore(String caption, Resource icon, MenuBar.Command command, MenuBar.MenuItem itemToAddBefore) Add an item before some item. |
void | addStyleName(String style) |
List | getItems() Returns a list with all the MenuItem objects in the menu bar. |
MenuItem | getMoreMenuItem() Get the MenuItem used as the collapse menu item. |
int | getSize() Returns the size of the menu. |
void | removeItem(MenuBar.MenuItem item) Remove first occurrence the specified item from the main menu. |
void | removeItems() Empty the menu bar. |
void | setAutoOpen(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. |
void | setCaption(String caption) |
void | setDebugId(String id) |
void | setDescription(String description) Sets the component's description. |
void | setHeight(float height, Unit unit) |
void | setHtmlContentAllowed(boolean htmlContentAllowed) Sets whether html is allowed in the item captions. |
void | setId(String id) |
void | setMoreMenuItem(MenuItem item) Set the item that is used when collapsing the top level menu. |
void | setResponsive(boolean responsive) Toggles responsiveness of this component. |
void | setSizeFull() |
void | setSizeUndefined() |
void | setStyleName(String style) |
void | setWidth(String width) |
void | setWidth(float width, Unit unit) |