kastork
05/17/2017, 5:03 PMRuckus
05/17/2017, 5:03 PMkastork
05/17/2017, 5:06 PMedvin
05/17/2017, 5:20 PMkastork
05/17/2017, 5:21 PMedvin
05/17/2017, 5:23 PMedvin
05/17/2017, 5:23 PMkastork
05/17/2017, 5:27 PMsomeComboBox.selectionModel.clearSelection()
to null out the property bound to the combo box, or do I need to set the property myself?kastork
05/17/2017, 5:36 PMedvin
05/17/2017, 5:36 PMclearSelection
is a core JavaFX function. As far as I can see it will set selected index to -1, so you should expect a reset to the bound property as well.Ruckus
05/17/2017, 6:17 PMRuckus
05/17/2017, 6:19 PMclass Test<T> {
val value = SimpleObjectProperty<T>()
}
class TestModel<T> : ItemViewModel<Test<T>>() {
val value = bind { item?.value }
}
Ruckus
05/17/2017, 6:20 PMRuckus
05/17/2017, 6:20 PMcarlw
05/17/2017, 6:21 PMRuckus
05/17/2017, 6:23 PMcarlw
05/17/2017, 6:23 PMcarlw
05/17/2017, 6:23 PMRuckus
05/17/2017, 6:31 PMRoot
), so I'd like to not have to redefine bindings to all the Root
properties for every variant.edvin
05/17/2017, 6:32 PMedvin
05/17/2017, 6:33 PMRuckus
05/17/2017, 6:35 PMRuckus
05/17/2017, 6:35 PMRuckus
05/17/2017, 6:36 PMRuckus
05/17/2017, 6:36 PMRuckus
05/17/2017, 6:37 PMedvin
05/17/2017, 6:37 PMedvin
05/17/2017, 6:37 PMedvin
05/17/2017, 6:38 PMedvin
05/17/2017, 6:39 PM