Binder
The Binder can be used to connect individual fields of a view with an entity. Attributes of the entity can be loaded into the fields, as well as the values of the fields can be written back into the entity.
An entity can be connected as follows:
-
Drag and drop the entity onto the view.
-
Select the fields that should be editable.
-
Ok click.
Now the configured binder can be used as follows:
// Schreibe Felder in das übergebene Objekt
final Kunde kunde1 = new Kunde();
this.binder.writeBean(kunde1);
// Fülle die Felder mit den Attributen des übergebenen Objekts
final Kunde kunde2 = new Kunde();
this.binder.readBean(kunde2);
Important properties:
-
Bindings - configurations of the bound fields