nimakro
05/17/2017, 8:10 AMstringBinding
to transform the value into the desired format.edvin
05/17/2017, 9:17 AMedvin
05/17/2017, 10:17 AMkastork
05/17/2017, 3:12 PMbindselected
, in ItemControls
in fun TableView<T>.bindSelected
on line 462.
The debugger cannot resolve selectionModel.selectedItemProperty()
(that is the current code), but it can resolve selectionModelProperty().value.selectedItemProperty()
I noticed this because my breakpoint on line 463 inside the listener were never being reached.Ruckus
05/17/2017, 4:16 PMItemViewModel
(to bind to a ListView
for example)?Ruckus
05/17/2017, 4:16 PMkastork
05/17/2017, 4:18 PMlistview(viewModel.someListValuedProperty) {
// ...
}
kastork
05/17/2017, 4:19 PMlistview(viewModel.someListValuedProperty.value) {
// ...
}
Ruckus
05/17/2017, 4:24 PMItemViewModel
Ruckus
05/17/2017, 4:24 PMRuckus
05/17/2017, 4:25 PMListProperty
?kastork
05/17/2017, 4:25 PMsomeListValuedProperty
Ruckus
05/17/2017, 4:27 PMval internalReferences: ListProperty<Reference> = bind { SimpleListProperty(item?.references) }
fails at runtime with a class cast exception.kastork
05/17/2017, 4:30 PMclass Foo (
stringList: List<String>? = null
) {
var stringList by property(stringList)
fun stringListProperty() = getProperty(Foo::stringList)
}
kastork
05/17/2017, 4:31 PMclass Foo (
stringList: List<String>? = listOf<String>()
) {
var stringList by property(stringList)
fun stringListProperty() = getProperty(Foo::stringList)
}
Ruckus
05/17/2017, 4:32 PMjchildress
05/17/2017, 4:32 PMval tracks = FXCollections.observableArrayList<Track>()
in my model and then val tracks = bind(Album::tracks)
in my IVMkastork
05/17/2017, 4:32 PMjchildress
05/17/2017, 4:33 PMRuckus
05/17/2017, 4:33 PMjchildress
05/17/2017, 4:34 PMjchildress
05/17/2017, 4:34 PMRuckus
05/17/2017, 4:35 PMjchildress
05/17/2017, 4:35 PMRuckus
05/17/2017, 4:38 PMRuckus
05/17/2017, 4:38 PMjchildress
05/17/2017, 4:45 PMRuckus
05/17/2017, 4:54 PMedvin
05/17/2017, 5:02 PMedvin
05/17/2017, 5:02 PM