Class EnhancedRouteTabs

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.flowingcode.vaadin.addons.enhancedtabs.EnhancedTabs>
com.flowingcode.vaadin.addons.demo.EnhancedRouteTabs
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.internal.BeforeEnterHandler, Serializable

public class EnhancedRouteTabs extends com.vaadin.flow.component.Composite<com.flowingcode.vaadin.addons.enhancedtabs.EnhancedTabs> implements com.vaadin.flow.router.BeforeEnterObserver
Extension of EnhancedTabs in order to allow to bind tabs with Routes.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(String text, Class<? extends com.vaadin.flow.component.Component> target)
     
    void
    addLegacyTab(String label, com.vaadin.flow.component.Component content)
    Deprecated.
    void
    beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event)
     

    Methods inherited from class com.vaadin.flow.component.Composite

    getChildren, getContent, getElement, initContent

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, findAncestor, fireEvent, from, get, 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, setVisible

    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.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Constructor Details

    • EnhancedRouteTabs

      public EnhancedRouteTabs()
  • Method Details

    • add

      public void add(String text, Class<? extends com.vaadin.flow.component.Component> target)
    • beforeEnter

      public void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event)
      Specified by:
      beforeEnter in interface com.vaadin.flow.router.internal.BeforeEnterHandler
    • addLegacyTab

      @Deprecated public void addLegacyTab(String label, com.vaadin.flow.component.Component content)
      Deprecated.