Class HeaderTabsNavRenderer

java.lang.Object
org.vaadin.addons.joelpop.appnavlayout.ui.layout.appnav.HeaderTabsNavRenderer
All Implemented Interfaces:
NavRenderer

public class HeaderTabsNavRenderer extends Object implements NavRenderer
An alternative NavRenderer for NavType.HEADER — root sections rendered as a Tabs strip spanning the header; selecting a leaf navigates directly, selecting a group only reveals that root's own children in the shared SecondaryTabBar drill-down row beneath, never navigating on its own — the same non-committal rule the drill-down row itself applies to a group tab of its own (see SecondaryTabBar(boolean, boolean)). Losing focus on the whole nav hierarchy — either row — without ever landing on a leaf restores both to whatever the real current view actually is.
  • Constructor Details

    • HeaderTabsNavRenderer

      public HeaderTabsNavRenderer()
  • Method Details

    • render

      public void render(NavRenderContext context)
      Description copied from interface: NavRenderer
      Builds or updates this renderer's content for the current nav state. Called once when this scenario becomes active, again on every completed navigation, and again whenever nav configuration changes (grouper swap, path matcher change). The implementation decides which slot(s) in context.slots() to populate and how — including any overflow or drill-down scaffolding it needs (a "More…" popover, a chevron, a swipeable container, etc).
      Specified by:
      render in interface NavRenderer