accessor

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).

Parameters

read

answers with the value a component of type T holds.

write

puts a value onto a component of type T.