Package com.vaadin.flow.router
Class MenuData
java.lang.Object
com.vaadin.flow.router.MenuData
- All Implemented Interfaces:
Serializable
Data class for menu item information.
Only for read as data is immutable.
- See Also:
-
Constructor Details
-
MenuData
Creates a new instance of the menu data.- Parameters:
title
- the title of the menu itemorder
- the order of the menu itemexclude
- whether the menu item should be excludedicon
- the icon of the menu item
-
-
Method Details
-
getTitle
Gets the title of the menu item.- Returns:
- the title of the menu item
-
getOrder
Gets the order of the menu item.- Returns:
- the order of the menu item
-
isExclude
public boolean isExclude()Gets whether the menu item should be excluded.- Returns:
- whether the menu item should be excluded
-
getIcon
Gets the icon of the menu item.- Returns:
- the icon of the menu item
-
toString
-
equals
-
hashCode
public int hashCode()
-