edvin
07/25/2017, 7:48 AMpike
07/25/2017, 7:49 AMpike
07/25/2017, 7:58 AMpim
07/25/2017, 11:57 AMpim
07/25/2017, 12:27 PMdataGrid
. I have it bound to an observableList
that I edit, so the changes to this list should be reflected in the dataGrid
, but they don't. When I use a listView
for example, it DOES work. 🤔 Fun fact: I've edited the DataGridTest
to bind data just like I do, and it works there. I'm confused.pim
07/25/2017, 12:36 PMcellCache
. I've switched back to cellFormat
, now it works.pim
07/25/2017, 12:43 PMdata class xyz
that contains 3 properties and has no hashCode
implementation, and for some reason this made the cellCache
bug out. Might want to investigate this. Fixed by overriding the hashCode
and returning identityHashCode
. I don't know how the property.hashCode
is implemented, can't find it in the sources.edvin
07/25/2017, 2:16 PMedvin
07/25/2017, 2:21 PMedvin
07/25/2017, 2:22 PMedvin
07/25/2017, 2:22 PMedvin
07/25/2017, 2:23 PMpim
07/25/2017, 2:33 PMListProperty
, but it seems this does not get initialized as an empty list when the item
is null, is that correct?pim
07/25/2017, 2:33 PMjava.lang.IllegalStateException: displayModel.machines must not be null
edvin
07/25/2017, 2:34 PMpim
07/25/2017, 2:34 PMpim
07/25/2017, 2:34 PMval machinesProperty = bind(autocommit = true) { item?.machinesProperty }
is what I'm doing.pim
07/25/2017, 2:35 PMis ObservableList<*> -> if (value != null) SimpleListProperty(this, prop.name, value as ObservableList<T>) else SimpleListProperty(this, prop?.name)
so..pim
07/25/2017, 2:40 PMcellCache
and hashCode -> I thought a data class would solve the problem but I guess property.hashCode doesn't do the jobedvin
07/25/2017, 2:49 PMpim
07/25/2017, 2:49 PMedvin
07/25/2017, 2:49 PMedvin
07/25/2017, 7:54 PMedvin
07/25/2017, 8:15 PMpike
07/25/2017, 8:21 PMedvin
07/25/2017, 8:44 PMpike
07/25/2017, 8:44 PMpike
07/25/2017, 8:44 PMnimakro
07/25/2017, 8:55 PM