Class NaviItem

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.html.Div>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasOrderedComponents, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasText, Serializable

    @CssImport("styles/components/navi-item.css")
    public class NaviItem
    extends com.vaadin.flow.component.html.Div
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.vaadin.flow.component.button.Button expandCollapse  
    • Constructor Summary

      Constructors 
      Constructor Description
      NaviItem​(com.vaadin.flow.component.html.Image image, String text, Class<? extends com.vaadin.flow.component.Component> navigationTarget)  
      NaviItem​(com.vaadin.flow.component.icon.VaadinIcon icon, String text, Class<? extends com.vaadin.flow.component.Component> navigationTarget)  
      NaviItem​(com.vaadin.flow.component.icon.VaadinIcon icon, String text, Class<? extends com.vaadin.flow.component.Component> navigationTarget, String parameter)  
      NaviItem​(com.vaadin.flow.component.icon.VaadinIcon icon, String text, Class<? extends com.vaadin.flow.component.Component> navigationTarget, Map<String,​List<String>> parameters)  
      NaviItem​(String text, Class<? extends com.vaadin.flow.component.Component> navigationTarget, Map<String,​List<String>> parameters)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addSubItem​(NaviItem item)  
      int getLevel()  
      Class<? extends com.vaadin.flow.component.Component> getNavigationTarget()  
      String getText()  
      boolean isHighlighted​(com.vaadin.flow.router.AfterNavigationEvent e)  
      static com.vaadin.flow.router.HighlightCondition<com.vaadin.flow.router.RouterLink> sameLocation()  
      void setLevel​(int level)  
      void setSubItemsVisible​(boolean visible)  
      void setVisible​(boolean visible)  
      • Methods inherited from class com.vaadin.flow.component.HtmlComponent

        getTitle, setTitle
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId
      • Methods inherited from interface com.vaadin.flow.component.AttachNotifier

        addAttachListener
      • Methods inherited from interface com.vaadin.flow.component.ClickNotifier

        addClickListener, addClickShortcut
      • Methods inherited from interface com.vaadin.flow.component.DetachNotifier

        addDetachListener
      • Methods inherited from interface com.vaadin.flow.component.HasComponents

        add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
      • Methods inherited from interface com.vaadin.flow.component.HasElement

        getElement
      • Methods inherited from interface com.vaadin.flow.component.HasEnabled

        isEnabled, setEnabled
      • Methods inherited from interface com.vaadin.flow.component.HasOrderedComponents

        getChildren, getComponentAt, getComponentCount, indexOf, replace
      • Methods inherited from interface com.vaadin.flow.component.HasSize

        getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
      • Methods inherited from interface com.vaadin.flow.component.HasStyle

        addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
      • Methods inherited from interface com.vaadin.flow.component.HasText

        setText
    • Field Detail

      • expandCollapse

        protected com.vaadin.flow.component.button.Button expandCollapse
    • Constructor Detail

      • NaviItem

        public NaviItem​(com.vaadin.flow.component.icon.VaadinIcon icon,
                        String text,
                        Class<? extends com.vaadin.flow.component.Component> navigationTarget)
      • NaviItem

        public NaviItem​(com.vaadin.flow.component.html.Image image,
                        String text,
                        Class<? extends com.vaadin.flow.component.Component> navigationTarget)
      • NaviItem

        public NaviItem​(com.vaadin.flow.component.icon.VaadinIcon icon,
                        String text,
                        Class<? extends com.vaadin.flow.component.Component> navigationTarget,
                        String parameter)
      • NaviItem

        public NaviItem​(com.vaadin.flow.component.icon.VaadinIcon icon,
                        String text,
                        Class<? extends com.vaadin.flow.component.Component> navigationTarget,
                        Map<String,​List<String>> parameters)
      • NaviItem

        public NaviItem​(String text,
                        Class<? extends com.vaadin.flow.component.Component> navigationTarget,
                        Map<String,​List<String>> parameters)
    • Method Detail

      • sameLocation

        public static com.vaadin.flow.router.HighlightCondition<com.vaadin.flow.router.RouterLink> sameLocation()
      • isHighlighted

        public boolean isHighlighted​(com.vaadin.flow.router.AfterNavigationEvent e)
      • setLevel

        public void setLevel​(int level)
      • getLevel

        public int getLevel()
      • getNavigationTarget

        public Class<? extends com.vaadin.flow.component.Component> getNavigationTarget()
      • addSubItem

        public void addSubItem​(NaviItem item)
      • setSubItemsVisible

        public void setSubItemsVisible​(boolean visible)
      • getText

        public String getText()
      • setVisible

        public void setVisible​(boolean visible)
        Overrides:
        setVisible in class com.vaadin.flow.component.Component