Class NaviItem
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.HtmlComponent
-
- com.vaadin.flow.component.HtmlContainer
-
- com.vaadin.flow.component.html.Div
-
- coop.intergal.ui.components.navigation.drawer.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.ButtonexpandCollapse
-
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 voidaddSubItem(NaviItem item)intgetLevel()Class<? extends com.vaadin.flow.component.Component>getNavigationTarget()StringgetText()booleanisHighlighted(com.vaadin.flow.router.AfterNavigationEvent e)static com.vaadin.flow.router.HighlightCondition<com.vaadin.flow.router.RouterLink>sameLocation()voidsetLevel(int level)voidsetSubItemsVisible(boolean visible)voidsetVisible(boolean visible)-
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut
-
Methods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
-
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
-
-
-
-
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)
-
-
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:
setVisiblein classcom.vaadin.flow.component.Component
-
-