(Quick Reference)

7.2.4 Bean - Reference Documentation

Authors: Andres Almiray

Version: 1.2.0

7.2.4 Bean

Provided by: SwingBuilder

This is a catch-all node, it allows you to set properties on any object using the builder syntax, for example setting up bindings on a model

textField columns: 20, id: username
bean(model, value: bind{ username.text })

The previous code is equivalent to

textField columns: 20, text: bind('value', target: model)