nimakro
04/03/2017, 10:04 PMkotlin
config(GLOBAL) {
set("Global-Key" to "some-value")
}
Which would allow all components to use some commen config together and for that the component would have to have the ability to access the global config property. So the question would how I acess the global config form the config(GLOBAL)
function. Dose that make sense?redrield
04/04/2017, 12:54 AMredrield
04/04/2017, 12:55 AMredrield
04/04/2017, 12:56 AMredrield
04/04/2017, 12:56 AMredrield
04/04/2017, 12:58 AMredrield
04/04/2017, 12:58 AMredrield
04/04/2017, 12:58 AMedvin
04/04/2017, 5:04 AMnimakro
04/04/2017, 5:12 AMnimakro
04/04/2017, 5:14 AMron
04/04/2017, 5:57 AMconfig
not getting close to mimic the behaviour of java.util.Preferences
?ron
04/04/2017, 5:58 AMnimakro
04/04/2017, 6:38 AMalexp11223
04/04/2017, 6:44 AMopenModal
does not accept view as parameteredvin
04/04/2017, 6:48 AMopenModal
and openWindow
operates on an instance, so you can instantiate a view and show it using find<MyView>().openWindow()
for example.edvin
04/04/2017, 6:48 AMval myView = find<MyView>(); myView.openWindow()
.edvin
04/04/2017, 6:48 AMedvin
04/04/2017, 6:51 AMedvin
04/04/2017, 6:52 AMalexp11223
04/04/2017, 7:03 AMfind
? Can't I just use MyView().openWindow()
? What are advantages for using find
?ron
04/04/2017, 7:07 AMron
04/04/2017, 7:07 AMalexp11223
04/04/2017, 7:11 AMfind
always retrieves the same instance (singleton). What if I need multiple instances of a view?ron
04/04/2017, 7:12 AMview
make it a fragment
ron
04/04/2017, 7:12 AMedvin
04/04/2017, 7:39 AMron
04/04/2017, 7:39 AMedvin
04/04/2017, 7:48 AMalexp11223
04/04/2017, 7:56 AMbutton { action { .....
https://edvin.gitbooks.io/tornadofx-guide/content/3.%20Components.html
but now only setOnAction
works. Was it renamed? Why?