thomasnield
02/02/2017, 2:43 AMhastebrot
02/02/2017, 7:27 AMedvin
02/02/2017, 8:12 AMedvin
02/02/2017, 8:12 AMedvin
02/02/2017, 8:13 AMhastebrot
02/02/2017, 8:22 AMhastebrot
02/02/2017, 8:27 AMroot.scene
(or primaryStage.scene
) in FooView.<init>()
I need to delay the event registration to the next available JavaFX thread pulse. Otherwise it will throw a NPE. That's similar to the good old setTimeout(..., 0)
trick in JavaScript/DOM.hastebrot
02/02/2017, 8:36 AMonDock()
and onUndock()
. Maybe it is better to register (or unregister) the events in these methods instead in init {}
.hastebrot
02/02/2017, 8:38 AMhastebrot
02/02/2017, 8:39 AMESCAPE
key handler for every created Scene
.edvin
02/02/2017, 8:46 AMonDock
instead of init when you need a complete environment before you make changes.edvin
02/02/2017, 8:47 AMedvin
02/02/2017, 8:48 AMhastebrot
02/02/2017, 8:48 AMESC
handler.edvin
02/02/2017, 9:45 AMopenWindow
or openModal
and pass true
for the escClosesWindow
parameter.hastebrot
02/02/2017, 10:32 AMTableView<T>.bindSelected()
to TableView<T>.bindSelectedTo()
. For me a.bind(b)
implies, that the "right-hand-side" (b) is bound to the "left-hand-side" (a), similar to an assignment with the =
operator (but with reactive semantics). bindSelected()
does this the opposite way.edvin
02/02/2017, 10:40 AMhastebrot
02/02/2017, 10:43 AMedvin
02/02/2017, 10:54 AMedvin
02/02/2017, 10:58 AMcarlw
02/02/2017, 11:29 AMhastebrot
02/02/2017, 12:04 PMcarlw
02/02/2017, 12:05 PMcarlw
02/02/2017, 12:06 PMcarlw
02/02/2017, 12:07 PMcarlw
02/02/2017, 12:11 PMhastebrot
02/02/2017, 12:18 PMItemViewModel
. I've implemented some stuff manually and didn't split the TornadoFX View
into two views (one for the list, one for the editor). Strangely I have to manually call refresh()
on the `TableView`: https://gist.github.com/hastebrot/9f4473ab13dee0b3f919ef1c3758e278#file-countries-kt-L80-L81edvin
02/02/2017, 12:36 PMcolumn("country", Country::country)
to column("country", Country::countryProperty)
etc, and you should be golden.edvin
02/02/2017, 12:36 PM