diff options
author | Alejandro <alejandro.d.a@gmail.com> | 2017-03-03 12:54:51 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-03-07 15:43:00 +0200 |
commit | 1bdab4d7ea90cbe6bfbef1da9db8c9600f57e328 (patch) | |
tree | 7761f82abb64a181cb6159460a650b061fc86789 | |
parent | 6b3c321144cd8ecbcc3114f76aea13687bc41471 (diff) | |
download | vaadin-framework-1bdab4d7ea90cbe6bfbef1da9db8c9600f57e328.tar.gz vaadin-framework-1bdab4d7ea90cbe6bfbef1da9db8c9600f57e328.zip |
Fix tutorial (use parameterized Grid) (#8738)
* Updated tutorial: Use Grid::setColumns
* Updated tutorial: use Binder instead of BeanBinder
* Fixed tutorial (use parameterized Grid)
* Fixed tutorial (use parameterized Grid)
* Merge branch 'master' of https://github.com/alejandro-du/framework
-rw-r--r-- | documentation/tutorial.adoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/tutorial.adoc b/documentation/tutorial.adoc index 589f6a69b7..adbfa51213 100644 --- a/documentation/tutorial.adoc +++ b/documentation/tutorial.adoc @@ -292,7 +292,7 @@ Also, let us get a reference to the [classname]#CustomerService#. public class MyUI extends UI { // Add the next two lines: private CustomerService service = CustomerService.getInstance(); - private Grid<Customer> grid = new Grid<>(); + private Grid<Customer> grid = new Grid<>(Customer.class); // The rest is already there... @Override @@ -362,7 +362,7 @@ omitted): [source,java] ---- private CustomerService service = CustomerService.getInstance(); -private Grid grid = new Grid(); +private Grid<Customer> grid = new Grid<>(Customer.class); @Override protected void init(VaadinRequest vaadinRequest) { |