SwingStyle

fun interface SwingStyle<in S : SwingStyleScope>

A style: a block over the scope S, semantically like a lambda executed on S. A property the style sets is written onto the component, and a property it stops setting gets back the value the component held before the style wrote it.

A style must not synchronously resolve another component's style. The companion is the empty style, which sets nothing.

Inheritors

Types

Link copied to clipboard

The empty style.

Functions

Link copied to clipboard
abstract fun S.applyStyle()

Applies this style to the receiving scope.

Link copied to clipboard

Combines this style with other. other runs after this style, so where both set a property, other's value wins.