hastebrot
01/31/2017, 2:54 PMedvin
01/31/2017, 2:57 PMfx:controller
attribute is set in the FXML. If it is not, I need to call setController(this@UIComponent)
before the FXML is loaded (requirement of JavaFX). If the fx:controller
attribute is set, I need to install a custom ControllerFactory and return the current component as the controller. This is of course too simplistic to support nested controllers.hastebrot
01/31/2017, 2:58 PMoleg-mazurov-anatomy-of-pulse.jpg▾
carlw
01/31/2017, 2:58 PMedvin
01/31/2017, 2:58 PMfind
other fx:controller
attributes of sub views, or just instantiate them like the default FXMLLoader does if the controller class isn't a TornadoFX UIComponent.edvin
01/31/2017, 2:59 PMedvin
01/31/2017, 2:59 PMedvin
01/31/2017, 2:59 PMcarlw
01/31/2017, 3:01 PMcarlw
01/31/2017, 3:04 PMhastebrot
01/31/2017, 4:10 PMedvin
01/31/2017, 4:20 PMron
01/31/2017, 4:24 PMron
01/31/2017, 4:24 PMcarlw
01/31/2017, 4:36 PMcarlw
01/31/2017, 4:44 PMedvin
01/31/2017, 7:06 PMhastebrot
01/31/2017, 8:21 PMhastebrot
01/31/2017, 8:30 PMView
reads the Model
, e.g. read changes from personModel.firstNameProperty()
and write to personView.firstNameLabel.textProperty()
.hastebrot
01/31/2017, 8:33 PMSampleModel#mvcGroupInit
. I guess we would declare the binding of those properties in the View
in TornadoFX.carlw
01/31/2017, 8:35 PMhastebrot
01/31/2017, 8:37 PMcarlw
01/31/2017, 8:40 PMhastebrot
01/31/2017, 8:41 PMViewModel
or ItemViewModel
class from TornadoFX for your ViewModel?carlw
01/31/2017, 8:42 PMcarlw
01/31/2017, 8:42 PMhastebrot
01/31/2017, 8:43 PMViewModel
and ItemViewModel
in https://edvin.gitbooks.io/tornadofx-guide/content/11.%20ViewModel%20and%20Validation.html. See section "Introducing ViewModel" and "ItemViewModel".carlw
01/31/2017, 8:43 PMcarlw
01/31/2017, 8:43 PMhastebrot
01/31/2017, 8:48 PM