From a8f5b1fb08b4eba5918aadb936030842aa9d9aed Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Mon, 21 Nov 2016 16:37:10 +0200 Subject: Add Filter parameter to DataProvider Change-Id: Ic65b8decb3ac8d4dde9bca6cfb40a2a70f461e91 --- server/src/main/java/com/vaadin/ui/AbstractListing.java | 4 ++-- server/src/main/java/com/vaadin/ui/CheckBoxGroup.java | 2 +- server/src/main/java/com/vaadin/ui/ComboBox.java | 6 +++--- server/src/main/java/com/vaadin/ui/ListSelect.java | 2 +- server/src/main/java/com/vaadin/ui/NativeSelect.java | 14 +++++++------- server/src/main/java/com/vaadin/ui/RadioButtonGroup.java | 6 +++--- server/src/main/java/com/vaadin/ui/TwinColSelect.java | 5 +++-- 7 files changed, 20 insertions(+), 19 deletions(-) (limited to 'server/src/main/java/com/vaadin/ui') diff --git a/server/src/main/java/com/vaadin/ui/AbstractListing.java b/server/src/main/java/com/vaadin/ui/AbstractListing.java index 99dd6e5eb1..f49d8715de 100644 --- a/server/src/main/java/com/vaadin/ui/AbstractListing.java +++ b/server/src/main/java/com/vaadin/ui/AbstractListing.java @@ -133,12 +133,12 @@ public abstract class AbstractListing extends AbstractComponent } @Override - public void setDataProvider(DataProvider dataProvider) { + public void setDataProvider(DataProvider dataProvider) { getDataCommunicator().setDataProvider(dataProvider); } @Override - public DataProvider getDataProvider() { + public DataProvider getDataProvider() { return getDataCommunicator().getDataProvider(); } diff --git a/server/src/main/java/com/vaadin/ui/CheckBoxGroup.java b/server/src/main/java/com/vaadin/ui/CheckBoxGroup.java index a3f99e7b27..eb61d2242d 100644 --- a/server/src/main/java/com/vaadin/ui/CheckBoxGroup.java +++ b/server/src/main/java/com/vaadin/ui/CheckBoxGroup.java @@ -64,7 +64,7 @@ public class CheckBoxGroup extends AbstractMultiSelect * the data provider, not null * @see Listing#setDataProvider(DataProvider) */ - public CheckBoxGroup(String caption, DataProvider dataProvider) { + public CheckBoxGroup(String caption, DataProvider dataProvider) { this(caption); setDataProvider(dataProvider); } diff --git a/server/src/main/java/com/vaadin/ui/ComboBox.java b/server/src/main/java/com/vaadin/ui/ComboBox.java index 60a229ba55..2270c1a181 100644 --- a/server/src/main/java/com/vaadin/ui/ComboBox.java +++ b/server/src/main/java/com/vaadin/ui/ComboBox.java @@ -158,8 +158,8 @@ public class ComboBox extends AbstractSingleSelect implements HasValue, } /** - * Constructs a combo box with a static in-memory data provider with the given - * options. + * Constructs a combo box with a static in-memory data provider with the + * given options. * * @param caption * the caption to show in the containing layout, null for no @@ -180,7 +180,7 @@ public class ComboBox extends AbstractSingleSelect implements HasValue, * @param dataProvider * the data provider to use, not null */ - public ComboBox(String caption, DataProvider dataProvider) { + public ComboBox(String caption, DataProvider dataProvider) { this(caption); setDataProvider(dataProvider); } diff --git a/server/src/main/java/com/vaadin/ui/ListSelect.java b/server/src/main/java/com/vaadin/ui/ListSelect.java index e616fa2af3..00e0d9912d 100644 --- a/server/src/main/java/com/vaadin/ui/ListSelect.java +++ b/server/src/main/java/com/vaadin/ui/ListSelect.java @@ -61,7 +61,7 @@ public class ListSelect extends AbstractMultiSelect { * @param dataProvider * the data provider, not {@code null} */ - public ListSelect(String caption, DataProvider dataProvider) { + public ListSelect(String caption, DataProvider dataProvider) { this(caption); setDataProvider(dataProvider); } diff --git a/server/src/main/java/com/vaadin/ui/NativeSelect.java b/server/src/main/java/com/vaadin/ui/NativeSelect.java index 2a696c75d4..46e72b02c6 100644 --- a/server/src/main/java/com/vaadin/ui/NativeSelect.java +++ b/server/src/main/java/com/vaadin/ui/NativeSelect.java @@ -34,12 +34,12 @@ import com.vaadin.shared.ui.nativeselect.NativeSelectState; * A simple drop-down select component. Represented on the client side by a * "native" HTML {@code