ComponentStyleScope
The scope of a style for any component; every component's own style scope extends it. A style runs when the component is applied, never in composition. A snapshot state it reads runs it again when that state changes.
Inheritors
Properties
Functions
Sets the component's accessible description - a longer localized explanation assistive technologies can read after the name. null clears any description this style set.
Sets the component's accessible name - the short localized string assistive technologies announce for it. null clears any name this style set. Mirrors AndroidX's semantics { contentDescription = ... }.
Applies this style to the receiving scope.
Sets background; on a non-opaque component also set opaque to true for it to paint.
Sets componentOrientation - the component's left-to-right / right-to-left orientation.
Sets cursor; null restores the inherited cursor.
Sets isEnabled on this component only, controlling whether it responds to user input and paints in its enabled state. To disable descendants, use provideNestedStyle(AllComponents) { enabled(false) } on a container. The provided style does not disable the container itself, and a descendant's own enabled(true) overrides it.
Sets isFocusable, declaring whether this component can receive keyboard focus.
Sets font; null takes the font from the parent container.
Sets foreground; null takes the color from the parent container.
Sets maximumSize and relays out; null restores the layout-computed maximum size.
Sets maximumSize to Dimension(width, height) and relays out.
Sets minimumSize and relays out; null restores the layout-computed minimum size.
Sets minimumSize to Dimension(width, height) and relays out.
Sets preferredSize and relays out; null restores the layout-computed preferred size.
Sets preferredSize to Dimension(width, height) and relays out.
Sets the component's actual size to size, like setSize. See size (the Int overload) for when this takes effect and how size/width/height compose.
Sets the component's actual size to width by height, like setSize. A layout manager overrides this on its next layout pass, so it takes effect for components positioned by themselves - those in a null layout or a JLayeredPane. To influence a managed layout, use preferredSize, minimumSize, or maximumSize instead.
Sets isVisible - whether the component is shown in its parent's layout.