Skip to content

Commit

Permalink
Step 8 | 08:25 | Add selection listener to the grid
Browse files Browse the repository at this point in the history
  • Loading branch information
amahdy committed Jun 1, 2017
1 parent 4306a34 commit 15432ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/vaadin/stepbystep/MyUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ protected void init(VaadinRequest vaadinRequest) {

grid.setItems(service.getEntries());

grid.asSingleSelect().addValueChangeListener(evt -> {
editorView.setPerson(evt.getValue());
});

splitPanel.setSizeFull();
grid.setSizeFull();
editorView.setSizeFull();
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/org/vaadin/stepbystep/PersonEditorView.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
package org.vaadin.stepbystep;

import org.vaadin.stepbystep.person.backend.Person;

/**
* Created by amahdy on 6/1/17.
*/
public class PersonEditorView extends PersonEditorDesign {
public void setPerson(Person value) {
}
}

0 comments on commit 15432ac

Please sign in to comment.