Class AppHeadroom.RibbonCondensedBar
java.lang.Object
org.vaadin.addons.joelpop.appheadroom.ui.component.AppHeadroom.RibbonCondensedBar
- Enclosing class:
AppHeadroom
AppHeadroom.CondensedBar.asRibbon()'s shape-specific accessor.-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.dom.StylegetStyle()The frame's own style — overrides the defaultvar(--vaadin-background-container)background, or anything else about the frame.setComponent(com.vaadin.flow.component.Component component) Sets the Component to show, nested inside anAppHeadroom-owned frame attached immediately.
-
Method Details
-
setComponent
Sets the Component to show, nested inside anAppHeadroom-owned frame 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. -
getStyle
public com.vaadin.flow.dom.Style getStyle()The frame's own style — overrides the defaultvar(--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- ifsetComponent(Component)hasn't been called with a non-nullargument yet
-