Class AppHeadroom.FloatingCondensedBar
java.lang.Object
org.vaadin.addons.joelpop.appheadroom.ui.component.AppHeadroom.FloatingCondensedBar
- Enclosing class:
AppHeadroom
AppHeadroom.CondensedBar.asFloating()'s shape-specific accessor.-
Method Summary
Modifier and TypeMethodDescriptionsetComponent(com.vaadin.flow.component.Component component) Sets the Component to show, attached immediately.
-
Method Details
-
setComponent
Sets the Component to show, attached immediately.null(the default) shows nothing while the real bar is hidden. Calling this again (including withnull) tears down whatever was previously built first. Returnsthisfor chaining.This is a "set once" operation, not a repeatedly-invoked renderer —
AppHeadroomnever 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 aSignalyour own navigation-aware code updates, rather than calling this again.
-