Companion

object Companion

The two ways to build a ComponentPropertyDescriptor: for one component type, or for several.

Functions

Link copied to clipboard
inline fun <T : Component, V> accessor(noinline read: (component: T) -> V, noinline write: (component: T, value: V) -> Unit): ComponentPropertyDescriptor.ComponentPropertyAccessor<T, V>

A ComponentPropertyAccessor of T, for this property's multi-type constructor: ComponentPropertyDescriptor.accessor<JLabel, Icon?>(read, write).

Link copied to clipboard

The property name that each of accessors declares for its own component type.

inline operator fun <T : Component, V> invoke(name: String, noinline read: (component: T) -> V, noinline write: (component: T, value: V) -> Unit): ComponentPropertyDescriptor<T, V>

The property name of components of type T.