Skip to content

Commit

Permalink
Step 9 | 09:00 | Define data binder for the form
Browse files Browse the repository at this point in the history
  • Loading branch information
amahdy committed Jun 1, 2017
1 parent 15432ac commit d497b26
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/org/vaadin/stepbystep/PersonEditorView.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
package org.vaadin.stepbystep;

import com.vaadin.data.Binder;
import org.vaadin.stepbystep.person.backend.Person;

/**
* Created by amahdy on 6/1/17.
*/
public class PersonEditorView extends PersonEditorDesign {

Binder<Person> binder = new Binder<>(Person.class);

public PersonEditorView() {
binder.bindInstanceFields(this);
}

public void setPerson(Person value) {
binder.setBean(value);
}
}

0 comments on commit d497b26

Please sign in to comment.