Class AppHeadroom.RibbonCondensedBar

java.lang.Object
org.vaadin.addons.joelpop.appheadroom.ui.component.AppHeadroom.RibbonCondensedBar
Enclosing class:
AppHeadroom

public static final class AppHeadroom.RibbonCondensedBar extends Object
AppHeadroom.CondensedBar.asRibbon()'s shape-specific accessor.
  • Method Details

    • setComponent

      public AppHeadroom.RibbonCondensedBar setComponent(com.vaadin.flow.component.Component component)
      Sets the Component to show, nested inside an AppHeadroom-owned frame attached immediately. null (the default) shows nothing while the real bar is hidden. Calling this again (including with null) tears down whatever was previously built first. Returns this for chaining.

      This is a "set once" operation, not a repeatedly-invoked renderer — AppHeadroom never calls this again on your behalf (e.g. on navigation). For content that needs to change over the layout's lifetime (a page title that follows the current route, for example), build the Component once and have it react to a Signal your own navigation-aware code updates, rather than calling this again.

    • getStyle

      public com.vaadin.flow.dom.Style getStyle()
      The frame's own style — overrides the default var(--vaadin-background-container) background, or anything else about the frame. A last resort, not the primary way to configure this: most apps never need it, since the default already fits any theme.
      Throws:
      IllegalStateException - if setComponent(Component) hasn't been called with a non-null argument yet