diff options
author | Jonni Nakari <jonni@egarden.fi> | 2017-03-20 16:54:50 +0100 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2017-05-08 14:46:35 +0300 |
commit | 98093d1b2238d813ab6dcf48d988a3b217e29458 (patch) | |
tree | 369f1048d588fa001e0c8a63a94cca733d415a27 /documentation/datamodel | |
parent | 4264096ac26c5a592bbea6fd099795dec30b4ef9 (diff) | |
download | vaadin-framework-98093d1b2238d813ab6dcf48d988a3b217e29458.tar.gz vaadin-framework-98093d1b2238d813ab6dcf48d988a3b217e29458.zip |
Change fromCollection -> ofCollection
Diffstat (limited to 'documentation/datamodel')
-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 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<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) -> { |