diff options
author | Jonni Nakari <jonni@egarden.fi> | 2017-03-20 16:54:50 +0100 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-03-21 08:52:29 +0200 |
commit | 85f51fdc6c4d7b773a02b7455ce0b033163ebcc5 (patch) | |
tree | 0d387a6e3f5e628816eb07946abfc80f96900d63 | |
parent | 1d127a0c7f16324ef30806c41dc7c5261105eb38 (diff) | |
download | vaadin-framework-85f51fdc6c4d7b773a02b7455ce0b033163ebcc5.tar.gz vaadin-framework-85f51fdc6c4d7b773a02b7455ce0b033163ebcc5.zip |
Change fromCollection -> ofCollection
-rw-r--r-- | documentation/datamodel/datamodel-providers.asciidoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/documentation/datamodel/datamodel-providers.asciidoc b/documentation/datamodel/datamodel-providers.asciidoc index c082b7a02b..f3a2337702 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<Person> 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<Person> dataProvider = - DataProvider.fromCollection(persons); + DataProvider.ofCollection(persons); ComboBox<Person> 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<Person> dataProvider = - DataProvider.fromCollection(persons); + DataProvider.ofCollection(persons); comboBox.setDataProvider(dataProvider.filteringBy( (person, filterText) -> { |