From 0a8079a9b87285d73f1d81f3b20d4f5492e4cc99 Mon Sep 17 00:00:00 2001 From: Ilia Motornyi Date: Thu, 4 May 2017 08:29:35 +0300 Subject: Fix three typos in the documentation (#9230) --- documentation/components/components-grid.asciidoc | 2 +- documentation/datamodel/datamodel-hierarchical.asciidoc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'documentation') diff --git a/documentation/components/components-grid.asciidoc b/documentation/components/components-grid.asciidoc index 8ecbe85c72..1195a1c79a 100644 --- a/documentation/components/components-grid.asciidoc +++ b/documentation/components/components-grid.asciidoc @@ -448,7 +448,7 @@ Grid grid = new Grid<>(people); // Render a button that deletes the data row (item) grid.addColumn(person -> "Delete", new ButtonRenderer(clickEvent -> { - people.remove(clickEvent.getValue()); + people.remove(clickEvent.getItem()); grid.setItems(people); })); ---- diff --git a/documentation/datamodel/datamodel-hierarchical.asciidoc b/documentation/datamodel/datamodel-hierarchical.asciidoc index 96a9d2381b..24d023acd9 100644 --- a/documentation/datamodel/datamodel-hierarchical.asciidoc +++ b/documentation/datamodel/datamodel-hierarchical.asciidoc @@ -28,7 +28,7 @@ HierarchyData data = new HierarchyData<>(); data.addItems(null, projects); // add children for the root level items -projects.forEach(project -> data.addItems(project, project.getChildren()); +projects.forEach(project -> data.addItems(project, project.getChildren())); // construct the data provider for the hierarchical data we've built InMemoryHierarchicalDataProvider dataProvider = new InMemoryHierarchicalDataProvider<>(data); @@ -53,7 +53,7 @@ dataProvider.refreshAll(); === Sorting and Filtering -For [classname]#InMemoryHierarchicalDataProvider#, both the sorting and filtering API is the same as in [classname]ListDataProvider#. Sorting and filtering are applied separately for each hierarchy level, meaning e.g. that for a node that has not passed the filter there are no children shown. +For [classname]#InMemoryHierarchicalDataProvider#, both the sorting and filtering API is the same as in [classname]#ListDataProvider#. Sorting and filtering are applied separately for each hierarchy level, meaning e.g. that for a node that has not passed the filter there are no children shown. [source, java] ---- -- cgit v1.2.3