public class MenuItem extends Object
| Constructor and Description |
|---|
MenuItem(String label,
com.vaadin.flow.server.Command command) |
MenuItem(String label,
MenuItem... subMenuItems) |
MenuItem(String label,
String icon,
com.vaadin.flow.server.Command command) |
MenuItem(String label,
String icon,
MenuItem... subMenuItems) |
MenuItem(String label,
URL image,
com.vaadin.flow.server.Command command) |
MenuItem(String label,
URL image,
MenuItem... subMenuItems) |
MenuItem(String label,
com.vaadin.flow.component.icon.VaadinIcon icon,
com.vaadin.flow.server.Command command) |
| Modifier and Type | Method and Description |
|---|---|
com.vaadin.flow.server.Command |
getCommand() |
String |
getIcon() |
URL |
getImageURL() |
String |
getLabel() |
List<MenuItem> |
getSubMenuItems() |
boolean |
isEnabled() |
boolean |
isSubMenuFolder() |
void |
setCommand(com.vaadin.flow.server.Command command) |
void |
setEnabled(boolean enabled) |
void |
setIcon(String icon) |
void |
setImageURL(URL imageURL) |
void |
setLabel(String label) |
void |
setRefreshCallback(Runnable refreshCallback)
This allows you to configure a callback that is called whenever you change the label and icon
|
void |
setSubMenuItems(List<MenuItem> subMenuItems) |
public MenuItem(String label, com.vaadin.flow.server.Command command)
public MenuItem(String label, com.vaadin.flow.component.icon.VaadinIcon icon, com.vaadin.flow.server.Command command)
public String getLabel()
public void setLabel(String label)
public com.vaadin.flow.server.Command getCommand()
public void setCommand(com.vaadin.flow.server.Command command)
public String getIcon()
public void setIcon(String icon)
public boolean isSubMenuFolder()
public void setRefreshCallback(Runnable refreshCallback)
refreshCallback - public boolean isEnabled()
public void setEnabled(boolean enabled)
public URL getImageURL()
public void setImageURL(URL imageURL)
Copyright © 2018–2019 Flowing Code. All rights reserved.