tornadofx / tornadofx / WeakDelegate

WeakDelegate

class WeakDelegate<T> : ReadOnlyProperty<Any, DeregisteringWeakReference<T>>

Constructors

<init> WeakDelegate(referent: T, deinit: () -> Unit = {})

Functions

getValue fun getValue(thisRef: Any, property: KProperty<*>): DeregisteringWeakReference<T>

Extension Functions

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