Package org.vaadin.firitin.appframework
Class BasicNavigationItem
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.sidenav.SideNavItem
org.vaadin.firitin.appframework.BasicNavigationItem
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.shared.HasPrefix,com.vaadin.flow.component.shared.HasSuffix,Serializable,NavigationItem
public class BasicNavigationItem
extends com.vaadin.flow.component.sidenav.SideNavItem
implements NavigationItem
A component to represent a main view in the navigation menu
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBasicNavigationItem(Class<? extends com.vaadin.flow.component.Component> navigationTarget) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItem(com.vaadin.flow.component.sidenav.SideNavItem... arg0) voidaddItemAsFirst(com.vaadin.flow.component.sidenav.SideNavItem arg0) voidaddItemAtIndex(int arg0, com.vaadin.flow.component.sidenav.SideNavItem arg1) voidaddSubItem(NavigationItem item) List<com.vaadin.flow.component.sidenav.SideNavItem>getItems()Class<? extends com.vaadin.flow.component.Component>getText()booleanvoidremove(com.vaadin.flow.component.sidenav.SideNavItem... arg0) voidvoidsetActive(boolean active) voidsetEnabled(boolean enabled) voidsetParentItem(NavigationItem parent) voidMethods inherited from class com.vaadin.flow.component.sidenav.SideNavItem
getLabel, getPath, getPathAliases, getTarget, isExpanded, isMatchNested, isOpenInNewBrowserTab, isRouterIgnore, setExpanded, setLabel, setMatchNested, setOpenInNewBrowserTab, setPath, setPath, setPathAliases, setQueryParameters, setRouterIgnore, setTarget, setupSideNavItemMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.shared.HasPrefix
getPrefixComponent, setPrefixComponentMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.shared.HasSuffix
getSuffixComponent, setSuffixComponent
-
Constructor Details
-
BasicNavigationItem
-
-
Method Details
-
getText
- Specified by:
getTextin interfaceNavigationItem
-
setPath
- Overrides:
setPathin classcom.vaadin.flow.component.sidenav.SideNavItem
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfacecom.vaadin.flow.component.HasEnabled
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfacecom.vaadin.flow.component.HasEnabled- Specified by:
isEnabledin interfaceNavigationItem
-
setActive
public void setActive(boolean active) - Specified by:
setActivein interfaceNavigationItem
-
getParentItem
- Specified by:
getParentItemin interfaceNavigationItem
-
getItems
-
removeAll
public void removeAll()
-