SwingStyleKind

How a component kind is styled: how its scope is built and what its default style does. Declare one per component kind, as a top-level val. A style of this kind runs against the scope S, which the kind builds over the state T the component feeds it, Unit for a kind without state.

Constructors

Link copied to clipboard
constructor(scope: (base: NestedStyleProviderScope, state: T) -> S, default: SwingStyle<S> = SwingStyle)

A kind for components of any Component type.

Properties

Link copied to clipboard

the style applied before the caller's own. A component that applies nested styles applies their keys here.

Link copied to clipboard
val scope: (base: NestedStyleProviderScope, state: T) -> S

builds the scope a style of this kind runs against, over base, which implements NestedStyleProviderScope. The scope delegates to base the interfaces it extends.