(0) |
Allows writing Griffon JavaFX applications using GroovyFX for the views.
This plugin assumes the existence of JavaFX on the developer's computer. The environment variable JAVAFX_HOME should point to the root directory of the JavaFX SDK installation.
Once installed, you can use any of the nodes provided by GroovyFX in your views. GroovyFX documentation can be found here and JavaFX documentation can be found here. In addition, you will be able to use the @FXBindable annotation on your models.
Your main application's view might look like this (in fact it will look exactly like this if you create your application with the JavaFX archetype):
stage(title: '@griffon.app.class.name@', visible: true, centerOnScreen: true) {
scene(fill: black, , ) {
hbox(padding: 80) {
text(text: "Java", font: "80pt sanserif") {
fill linearGradient(endX: 0, stops: [[0, orange], [1, chocolate]])
}
text(text: "FX", font: "80pt sanserif") {
fill linearGradient(endX: 0, stops: [[0, cyan], [1, dodgerblue]])
effect dropShadow(color: dodgerblue, radius: 25, spread: 0.25)
}
}
}
}