Interface NavigationItem

All Superinterfaces:
com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, Serializable
All Known Implementing Classes:
BasicNavigationItem, SubMenu

public interface NavigationItem extends com.vaadin.flow.component.HasStyle
  • Method Details

    • getMenuTextFromClass

      static String getMenuTextFromClass(Class<?> navigationTarget)
      Detects a menu item text for a view class, based on various annotations and falling back to genearing one from the class name.
      Parameters:
      navigationTarget - the view class
      Returns:
      string used in the menu/breadcrump for the view
    • getAnnotationFromType

      static <A extends Annotation> A getAnnotationFromType(Class<?> classType, Class<A> annotationClass)
    • getText

      String getText()
    • getNavigationTarget

      Class<?> getNavigationTarget()
    • isEnabled

      boolean isEnabled()
    • setActive

      void setActive(boolean active)
    • addSubItem

      void addSubItem(NavigationItem item)
    • setParentItem

      void setParentItem(NavigationItem basicNavigationItem)
    • getParentItem

      NavigationItem getParentItem()