sbyrne
01/03/2020, 7:42 PMPerson
) that I am using as the value of an ItemViewModel
. It has a collection (e.g.: var hairColors:Set<String>
). How do I bind it to the ItemViewModel
? If I do val hairColors = bind(Person::hairColors)
, I get java.lang.ClassCastException: java.util.LinkedHashSet cannot be cast to javafx.collections.ObservableSet
. I think I need to do something with bind(forceObjectProperty=true)
and rebindOnChange
, but I am not sure what.sbyrne
01/03/2020, 8:38 PM