groovyfx-project/groovyfx — pull request #7 by shemnon (2012-07-03 02:53:09+00:00)
Title: Allow FXML ids to be refrenced in Groovy code closures

This patch allows the CSS ids used in an FXML file to be referenced as free variables inside the closure for the fxml node. This allows the SceneBuilder to be used strictly in a visual fashion, with the only designer duty to properly name nodes.

Here is a quick builder based example:

```xml

```

with the builder code as follows:
```groovy
fxml resource("/FXMLDemoInline.fxml"), {
button.onAction {
label.text = "FizzBuzz";
}
}
```
The button and label properties are resolved via a lookup call on the node returned from the fxml loader.