From 98093d1b2238d813ab6dcf48d988a3b217e29458 Mon Sep 17 00:00:00 2001 From: Jonni Nakari Date: Mon, 20 Mar 2017 16:54:50 +0100 Subject: Change fromCollection -> ofCollection --- documentation/datamodel/datamodel-providers.asciidoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'documentation/datamodel') diff --git a/documentation/datamodel/datamodel-providers.asciidoc b/documentation/datamodel/datamodel-providers.asciidoc index 80b9fb9cb4..1c029aa574 100644 --- a/documentation/datamodel/datamodel-providers.asciidoc +++ b/documentation/datamodel/datamodel-providers.asciidoc @@ -94,7 +94,7 @@ All components will automatically update themselves when the sorting of the data [source, java] ---- ListDataProvider dataProvider = - DataProvider.fromCollection(persons); + DataProvider.ofCollection(persons); dataProvider.setSortOrder(Person::getName, SortDirection.ASCENDING); @@ -116,7 +116,7 @@ You can configure the data provider to always apply some specific filter to limi [source, java] ---- ListDataProvider dataProvider = - DataProvider.fromCollection(persons); + DataProvider.ofCollection(persons); ComboBox comboBox = new ComboBox<>(); comboBox.setDataProvider(dataProvider); @@ -141,7 +141,7 @@ To configure filtering through a component beyond what is possible with `Caption [source, java] ---- ListDataProvider dataProvider = - DataProvider.fromCollection(persons); + DataProvider.ofCollection(persons); comboBox.setDataProvider(dataProvider.filteringBy( (person, filterText) -> { -- cgit v1.2.3