tornadofx / tornadofx / PropertyDelegate

PropertyDelegate

class PropertyDelegate<T> : ReadWriteProperty<Any, T>

Constructors

<init> PropertyDelegate(fxProperty: Property<T>)

Properties

fxProperty val fxProperty: Property<T>

Functions

getValue fun getValue(thisRef: Any, property: KProperty<*>): T
setValue fun setValue(thisRef: Any, property: KProperty<*>, value: T): Unit

Extension Functions

getProperty fun <T> Any.getProperty(prop: KMutableProperty1<*, T>): ObjectProperty<T>
observable fun <T : Any> Any.observable(propName: String): ObjectProperty<T>