tornadofx / tornadofx / proxyprop

proxyprop

fun <R, T> proxyprop(receiver: Property<R>, getter: Property<R>.() -> T, setter: Property<R>.(T) -> R): ObjectProperty<T>

Create a proxy property backed by calculated data based on a specific property. The setter must return the new value for the backed property. The scope of the getter and setter will be the receiver property