Binds member fields found in the given object.
This method processes all (Java) member fields whose type extends {@link Field} and that can be mapped to a property id. Property idmapping is done based on the field name or on a @ {@link PropertyId}annotation on the field. All non-null fields for which a property id can be determined are bound to the property id.
For example:
public class MyForm extends VerticalLayout { private TextField firstName = new TextField("First name"); "last") private TextField lastName = new TextField("Last name"); private TextField age = new TextField("Age"); ... } MyForm myForm = new MyForm(); ... fieldGroup.bindMemberFields(myForm);
This binds the firstName TextField to a "firstName" property in the item, lastName TextField to a "last" property and the age TextField to a "age" property.
@param objectWithMemberFields The object that contains (Java) member fields to bind
@throws BindException If there is a problem binding a field