Package com.storedobject.vaadin
Interface ApplicationMenu
- All Superinterfaces:
com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,Serializable
public interface ApplicationMenu
extends com.vaadin.flow.component.HasComponents
Interface that defines the "menu" area of the
Application.- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidadd(ApplicationMenuItem menuItem) Add a menu item to the menu.default com.vaadin.flow.component.HasComponentsGet the menu pane.default voidinsert(int position, ApplicationMenuItem menuItem) Insert a menu item at a particular position in the menu.default voidremove(ApplicationMenuItem menuItem) Remove a menu item from the menu.Methods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
-
Method Details
-
getMenuPane
default com.vaadin.flow.component.HasComponents getMenuPane()Get the menu pane.- Returns:
- Menu pane.
-
add
Add a menu item to the menu.- Parameters:
menuItem- Menu item
-
insert
Insert a menu item at a particular position in the menu.- Parameters:
position- PositionmenuItem- Menu item
-
remove
Remove a menu item from the menu.- Parameters:
menuItem- Menu item
-