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
operator fun <V> invoke(name: String, vararg accessors: ComponentPropertyDescriptor.ComponentPropertyAccessor<*, V>): ComponentPropertyDescriptor<Component, V>