You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.router.

Class MenuData

java.lang.Object
com.vaadin.flow.router.MenuData

All Implemented Interfaces:

Serializable

public class MenuData extends Object implements Serializable

Data class for menu item information.

Only for read as data is immutable.

See Also:

  • Constructor Details

    • MenuData

      public MenuData(String title, Double order, boolean exclude, String icon)

      Creates a new instance of the menu data.

      Parameters:

      title - the title of the menu item

      order - the order of the menu item

      exclude - whether the menu item should be excluded

      icon - the icon of the menu item

  • Method Details

    • getTitle

      public String getTitle()

      Gets the title of the menu item.

      Returns:

      the title of the menu item

    • getOrder

      public Double 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

      public String getIcon()

      Gets the icon of the menu item.

      Returns:

      the icon of the menu item

    • toString

      public String toString()

      Overrides:

      toString in class Object

    • equals

      public boolean equals(Object obj)

      Overrides:

      equals in class Object

    • hashCode

      public int hashCode()

      Overrides:

      hashCode in class Object