Package org.vaadin.firitin.appframework
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 Summary
Modifier and TypeMethodDescriptionvoidaddSubItem(NavigationItem item) static <A extends Annotation>
AgetAnnotationFromType(Class<?> classType, Class<A> annotationClass) static StringgetMenuTextFromClass(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.Class<?>getText()booleanvoidsetActive(boolean active) voidsetParentItem(NavigationItem basicNavigationItem) Methods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Method Details
-
getMenuTextFromClass
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
-
getText
String getText() -
isEnabled
boolean isEnabled() -
setActive
void setActive(boolean active) -
getParentItem
NavigationItem getParentItem()
-