aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/tutorial.adoc
diff options
context:
space:
mode:
authorAlejandro <alejandro.d.a@gmail.com>2017-03-03 12:54:51 +0200
committerIlia Motornyi <elmot@vaadin.com>2017-03-03 12:54:51 +0200
commit772bc89131c6211e178f2fb04be40ad61fb3d4f4 (patch)
tree44a540d3bc843e44f3889048cc8e4bc4247a48a5 /documentation/tutorial.adoc
parentd548ebb548d860dfb95ff9dbc69e4a45c25973df (diff)
downloadvaadin-framework-772bc89131c6211e178f2fb04be40ad61fb3d4f4.tar.gz
vaadin-framework-772bc89131c6211e178f2fb04be40ad61fb3d4f4.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
Diffstat (limited to 'documentation/tutorial.adoc')
-rw-r--r--documentation/tutorial.adoc4
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) {