Class AppHeadroom.FloatingCondensedBar

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

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

    • setComponent

      public AppHeadroom.FloatingCondensedBar setComponent(com.vaadin.flow.component.Component component)
      Sets the Component to show, 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.