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 TypeMethodDescriptionvoid
addSubItem
(NavigationItem item) static <A extends Annotation>
AgetAnnotationFromType
(Class<?> classType, Class<A> annotationClass) 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.Class
<?> getText()
boolean
void
setActive
(boolean active) void
setParentItem
(NavigationItem basicNavigationItem) Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Method Details
-
getMenuTextFromClass
-
getAnnotationFromType
-
getText
String getText() -
isEnabled
boolean isEnabled() -
setActive
void setActive(boolean active) -
getParentItem
NavigationItem getParentItem()
-