carlw
06/26/2018, 3:29 PMGary Tierney
06/26/2018, 3:29 PMcarlw
06/26/2018, 3:29 PMamanda.hinchman-dominguez
06/26/2018, 3:29 PMorangy
amanda.hinchman-dominguez
06/26/2018, 3:30 PMGary Tierney
06/26/2018, 3:31 PMGary Tierney
06/26/2018, 3:31 PMorangy
amanda.hinchman-dominguez
06/26/2018, 3:31 PMGary Tierney
06/26/2018, 3:32 PMorangy
amanda.hinchman-dominguez
06/26/2018, 3:33 PMGary Tierney
06/26/2018, 3:33 PMorangy
amanda.hinchman-dominguez
06/26/2018, 3:33 PMorangy
Gary Tierney
06/26/2018, 3:34 PMorangy
myProperty.debounce(100.milliseconds).objectBinding { … }
, seems I have to write my own `Binding`…Gary Tierney
06/26/2018, 3:35 PMGary Tierney
06/26/2018, 3:35 PMamanda.hinchman-dominguez
06/26/2018, 3:36 PMamanda.hinchman-dominguez
06/26/2018, 3:38 PMamanda.hinchman-dominguez
06/26/2018, 3:39 PMamanda.hinchman-dominguez
06/26/2018, 3:39 PMEventStreams.ticks(Duration.ofMillis(2500))
.subscribe(tick -> doSomething());
Ruckus
06/26/2018, 3:44 PMclass InputDelay : View("Input Delay") {
override val root = vbox {
val status = label("0 characters (updated 0 times)")
textarea {
var updates = 0
val timer = PauseTransition(0.5.seconds)
timer.setOnFinished { status.text = "${text?.length ?: 0} characters (updated ${++updates} times)" }
textProperty().onChange { timer.playFromStart() }
}
}
}
nwh
06/26/2018, 3:48 PMui
block in the success
consumer of runAsync
? ie
runAsync { ... } success { ui { /* update stuff here */ } }
nwh
06/26/2018, 3:49 PMrunAsync {
success { ui { ... } }
}
Should I do it that way?Ruckus
06/26/2018, 3:50 PMui
is just an alias for success
, so there's no reason to do that. It was the original name, but was changed when runAsync
was made more robust. It was left in for compatibility reasons.nwh
06/26/2018, 3:50 PM