aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/datamodel/datamodel-providers.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/datamodel/datamodel-providers.asciidoc')
-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 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) -> {