gtnarg
11/25/2016, 12:00 AMedvin
11/25/2016, 6:04 AMedvin
11/25/2016, 7:24 AMgtnarg
11/25/2016, 1:30 PMedvin
11/25/2016, 1:40 PMgtnarg
11/25/2016, 1:42 PMedvin
11/25/2016, 1:51 PMedvin
11/25/2016, 7:47 PMedvin
11/25/2016, 8:34 PMedvin
11/26/2016, 3:47 PMedvin
11/26/2016, 10:22 PMRuckus
11/27/2016, 8:19 AMthomasnield
11/27/2016, 4:53 PMjakub.dyszkiewicz
11/27/2016, 4:53 PMjakub.dyszkiewicz
11/27/2016, 4:53 PMedvin
11/27/2016, 5:33 PMedvin
11/27/2016, 5:34 PMedvin
11/27/2016, 5:46 PMedvin
11/27/2016, 10:17 PMItemViewModel
to the guide, but I haven't proof read it yet. I will also write more about scopes in a separate chapter, will try to start this work tomorrow. Let me know if you're missing anything concerning ItemViewModel at least! It should pop up here in a minute or two. I will also proof it tomorrow, getting late here now 🙂 https://edvin.gitbooks.io/tornadofx-guide/content/11.%20ViewModel%20and%20Validation.htmledvin
11/27/2016, 10:18 PMItemViewModel
to get to the beginning of it.thomasnield
11/28/2016, 12:56 AMedvin
11/28/2016, 7:21 AMhastebrot
11/28/2016, 11:19 AMsetupStage {}
function: https://gist.github.com/hastebrot/327227474b3231456cd36e9038ff15d9hastebrot
11/28/2016, 11:25 AMPlatformImpl.startup()
from JavaFX 8 is easily exchangeable with Platform.startup()
from JavaFX 9, for future compatibility.
- It is not explicitly needed to run the toolkit launch in a new thread. And multiple calls to startup()
don't throw an Exception.
- supplyStage()
(for startup) and consumeStage()
(for the action setup) are customizable.
- I dropped the notion of "primary Stage". It seems primary stages are only required for Java applets.
- setupStage(): Stage
does not return a Future
(which makes it simpler to use) but internally uses futures.hastebrot
11/28/2016, 11:37 AMCompleteableFuture#completeExceptionally()
) is missing, but this is easy to change.
- Future#get()
doesn't use a timeout (which is important for CI environments), but this is easy to change.hastebrot
11/28/2016, 11:50 AMfun main(args: Array<String>) {
val stage = setupStage { stage ->
stage.title = "hello javafx"
stage.scene = Scene(StackPane(Label("hello javafx")), 200.0, 200.0)
stage.show()
}
setupStage({ stage }) {
stage.scene = Scene(StackPane(Label("hello stage")), 200.0, 200.0)
}
}
edvin
11/28/2016, 1:56 PMgtnarg
11/28/2016, 2:01 PMcarlw
11/28/2016, 3:10 PMStaticFields.PNG▾