Views
5 months ago

tornadofx-guide

12. TornadoFX IDEA

12. TornadoFX IDEA Plugin You can then use a dialog to select the MyOtherView as the injected property, then click OK (Figure 13.11). Figure 13.11 184

12. TornadoFX IDEA Plugin Generating TornadoFX Properties One of the most helpful features in the plugin is the ability to convert plain Kotlin properties into TornadoFX properties. Say you have a simple domain class called Client . class Client(id: Int, name: String) { val id: Int = id val name: String = name } If you click on a property and then the intent lightbulb, or press ALT+ENTER, you should see a menu popup with an option to convert it to a TornadoFX Property (Figure 13.12). Figure 13.12 185

guide
guide
Guide
GUIDE
guide
Guide
GUIDE
guiding
The Guide
guide
Guide
guide
GUIDE
guide
GUIDE
Guide
GUIDE
GUIDE
guide
Guide
GUIDE
Guide to
guide
guide
A guide
guide
Guide
guide
GUIDE
GUIDE