edvin
09/19/2016, 6:20 AMron
09/19/2016, 6:21 AMron
09/19/2016, 6:22 AMron
09/19/2016, 6:22 AMedvin
09/19/2016, 6:22 AMedvin
09/19/2016, 6:23 AMron
09/19/2016, 6:27 AMedvin
09/19/2016, 6:28 AMedvin
09/19/2016, 6:28 AMron
09/19/2016, 6:31 AMron
09/19/2016, 6:31 AMron
09/19/2016, 6:34 AMcarlw
09/19/2016, 3:08 PMcarlw
09/19/2016, 3:09 PMcarlw
09/19/2016, 3:10 PMedvin
09/19/2016, 3:15 PMfx:controller
attribute is to get content completion for action calls etc. If you add the attribute, just pass true
to the fxml()
delegate. If you don't add it, that's also fine, it will be automatically assigned 🙂 I'm very eager to hear your thoughts after trying it a bit at scale 🙂edvin
09/19/2016, 3:17 PMoverride val root : BorderPane by fxml()
and the FXML file is loaded automatically 🙂edvin
09/19/2016, 3:18 PM@FXML
annotation. To "inject" a component from an FXML file, just do val myButton: Button by fxid()
. That will inject <Button fx:id="myButton">
automatically.carlw
09/19/2016, 3:18 PMedvin
09/19/2016, 3:19 PMedvin
09/19/2016, 3:19 PMcarlw
09/19/2016, 3:19 PMedvin
09/19/2016, 3:21 PMcarlw
09/19/2016, 3:22 PMedvin
09/19/2016, 3:23 PMedvin
09/19/2016, 3:26 PMcarlw
09/19/2016, 3:27 PMedvin
09/19/2016, 3:28 PMron
09/19/2016, 6:18 PM