summaryrefslogtreecommitdiffstats
path: root/documentation/datamodel
diff options
context:
space:
mode:
authorJonni Nakari <jonni@egarden.fi>2017-03-20 16:54:50 +0100
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-05-08 14:46:35 +0300
commit98093d1b2238d813ab6dcf48d988a3b217e29458 (patch)
tree369f1048d588fa001e0c8a63a94cca733d415a27 /documentation/datamodel
parent4264096ac26c5a592bbea6fd099795dec30b4ef9 (diff)
downloadvaadin-framework-98093d1b2238d813ab6dcf48d988a3b217e29458.tar.gz
vaadin-framework-98093d1b2238d813ab6dcf48d988a3b217e29458.zip
Change fromCollection -> ofCollection
Diffstat (limited to 'documentation/datamodel')
-rw-r--r--documentation/datamodel/datamodel-providers.asciidoc6
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) -> {