orangy
ObservableValue
is invariant 😞carlw
06/26/2018, 2:54 PMorangy
orangy
orangy
populate
inside rootProperty().onChange {}
it works except for the first timeNikky
06/26/2018, 3:00 PMNikky
06/26/2018, 3:00 PMcarlw
06/26/2018, 3:00 PMorangy
carlw
06/26/2018, 3:01 PMorangy
childFactory
and use this:
rootProperty().onChange { populate(childFactory = childFactory) }
populate(childFactory = childFactory)
orangy
populate
should do that. It looks like declarative syntax, should behave like this.Nikky
06/26/2018, 3:02 PMcarlw
06/26/2018, 3:02 PMNikky
06/26/2018, 3:03 PMcarlw
06/26/2018, 3:03 PMNikky
06/26/2018, 3:04 PMorangy
carlw
06/26/2018, 3:08 PMcarlw
06/26/2018, 3:17 PMcarlw
06/26/2018, 3:17 PMcarlw
06/26/2018, 3:18 PMcarlw
06/26/2018, 3:20 PMorangy
val scriptProperty = SimpleStringProperty()
val evalProperty = scriptProperty.objectBinding { evalScript(it!!)}
and scriptProperty
bound to TextArea text, I want evalProperty
to reevaluate only when scriptProperty
didn’t change for, say, 100msorangy
eval
, but for a prototype I’m doing it should workorangy
carlw
06/26/2018, 3:26 PMcarlw
06/26/2018, 3:26 PMorangy