Package | Description |
---|---|
com.vaadin.flow.component.applayout |
Modifier and Type | Method and Description |
---|---|
AppLayoutMenuItem |
AppLayoutMenu.addMenuItem(AppLayoutMenuItem item)
Adds item to the menu.
|
AppLayoutMenuItem |
AppLayoutMenu.addMenuItem(Component icon)
Constructs a new object with the given icon.
|
AppLayoutMenuItem |
AppLayoutMenu.addMenuItem(Component icon,
ComponentEventListener<MenuItemClickEvent> listener)
Constructs a new object with the given icon and click listener.
|
AppLayoutMenuItem |
AppLayoutMenu.addMenuItem(Component icon,
String title)
Constructs a new object with the given icon and title.
|
AppLayoutMenuItem |
AppLayoutMenu.addMenuItem(Component icon,
String title,
ComponentEventListener<MenuItemClickEvent> listener)
Constructs a new object with the given icon, title and click listener.
|
AppLayoutMenuItem |
AppLayoutMenu.addMenuItem(Component icon,
String title,
String route)
Constructs a new object with the given icon, title and route.
|
AppLayoutMenuItem |
AppLayoutMenu.addMenuItem(String title)
Constructs a new object with the given title.
|
AppLayoutMenuItem |
AppLayoutMenu.addMenuItem(String title,
ComponentEventListener<MenuItemClickEvent> listener)
Constructs a new object with the given title and click listener.
|
AppLayoutMenuItem |
AppLayoutMenu.getSelectedMenuItem()
Gets the currently selected menu item.
|
Modifier and Type | Method and Description |
---|---|
Optional<AppLayoutMenuItem> |
AppLayoutMenu.getMenuItemTargetingRoute(String route)
Gets the first
AppLayoutMenuItem targeting a route. |
Modifier and Type | Method and Description |
---|---|
AppLayoutMenuItem |
AppLayoutMenu.addMenuItem(AppLayoutMenuItem item)
Adds item to the menu.
|
void |
AppLayoutMenu.addMenuItems(AppLayoutMenuItem... menuItems)
Adds menu items to the menu.
|
void |
AppLayoutMenu.removeMenuItem(AppLayoutMenuItem menuItem)
Removes
AppLayoutMenuItem from the menu |
void |
AppLayoutMenu.selectMenuItem(AppLayoutMenuItem menuItem)
Selects a menu item.
|
void |
AppLayoutMenu.setMenuItems(AppLayoutMenuItem... menuItems)
Clears existing menu items and sets the new the arguments.
|
Constructor and Description |
---|
MenuItemClickEvent(AppLayoutMenuItem source,
boolean fromClient) |
Copyright © 2019. All rights reserved.