Bind fields to a data model
master-11FormsFX is designed to manipulate data via model classes containing JavaFX properties. You can bind a field directly to a property.
To manage data lifecycle, use:
persist(): Stores current field values into the bound properties.reset(): Reverts field values to the values currently in the properties.
By default, persistence is manual. You can set the BindingMode to CONTINUOUS at the form level to automate this.
StringProperty name = new SimpleStringProperty("Hans");
Field.ofStringType(name);