Views
7 months ago

tornadofx-guide

12. TornadoFX IDEA

12. TornadoFX IDEA Plugin You will then come to a dialog to dictate how the View is constructed. You even have the option of specifying it as a Fragment instead through the Type parameter, as well as an FXML via Kind. Finally, you can specify the Node type for the Root, which should default to a BorderPane . Figure 13.8 Click OK and a new View will generated and added to your project (Figure 13.9). Figure 13.9 A new View generated with the TornadoFX plugin 182

12. TornadoFX IDEA Plugin Injecting Components One last minor convenience. You can generate TornadoFX Component injections quickly with the plugin. For instance, if you right click the class body of the MainView , you can generate the MyOtherView as an injected property (Figure 13.10). Figure 13.10 183

GUIDE
GUIDE
GUIDE
GUIDE
Guide
GUIDE
Guide
GUIDE
Guide
GUIDE
GUIDE
GUIDE
Guide
Guide
The Ultimate Guide The Ultimate Guide