BP
Size: a a a
BP
VA
BP
VA
QH
RI
QH
BP
QH
QH
AM
Error: Could not find or load main class net.aquadc.properties.fx.FxWithOurPropsSample
QH
Error: Could not find or load main class net.aquadc.properties.fx.FxWithOurPropsSample
AN
BP
BP
BV
fun <T, R, P: ObservableValue<T>> P.flatMap(vararg dependencies: Observable,
transform: T.() -> ObservableValue<R?>): Binding<R?> {
val bindingProperty = objectProperty<R>().apply {
this@flatMap.value?.let {
bind(it.transform())
}
}
onChange {
bindingProperty.unbind()
if(it != null)
bindingProperty.bind(it.transform())
}
return bindingProperty.objectBinding(*dependencies) { it }
}
BP
BV
BV
BP