summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorOlli Tietäväinen <ollit@vaadin.com>2019-07-12 10:44:55 +0300
committerZhe Sun <31067185+ZheSun88@users.noreply.github.com>2019-07-12 10:44:55 +0300
commit901705e1c8ef4253cccef07999f79ffdc5e2bcd4 (patch)
treeb740ee5ee919d69196dd5e6f0cef9fd3f467fe6b /shared
parent41de4e402e4b718804c71e9629c2030ff17df3e4 (diff)
downloadvaadin-framework-901705e1c8ef4253cccef07999f79ffdc5e2bcd4.tar.gz
vaadin-framework-901705e1c8ef4253cccef07999f79ffdc5e2bcd4.zip
11642 refresh pagelength 0 combobox items after dataprovider update (#11653)
* Fixes #11642. ComboBox with pageLength 0 should be updated if DataProvider changes * added comments, fixed imports
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxServerRpc.java7
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxState.java8
2 files changed, 15 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxServerRpc.java b/shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxServerRpc.java
index 32bcd64c43..8cd9fff9e9 100644
--- a/shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxServerRpc.java
+++ b/shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxServerRpc.java
@@ -40,4 +40,11 @@ public interface ComboBoxServerRpc extends ServerRpc {
* mode
*/
public void setFilter(String filter);
+
+ /**
+ * Reset the force update flag once the list contents have been updated.
+ *
+ * @since
+ */
+ public void resetForceDataSourceUpdate();
}
diff --git a/shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxState.java b/shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxState.java
index acd4fb0abc..a8ad60e33d 100644
--- a/shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxState.java
+++ b/shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxState.java
@@ -25,6 +25,7 @@ import com.vaadin.shared.ui.AbstractSingleSelectState;
* @since 7.0
*/
public class ComboBoxState extends AbstractSingleSelectState {
+
{
// TODO ideally this would be v-combobox, but that would affect a lot of
// themes
@@ -107,4 +108,11 @@ public class ComboBoxState extends AbstractSingleSelectState {
*/
public String currentFilterText;
+ /**
+ * Ensure the data source is updated when backing dataprovider has been
+ * refreshed.
+ *
+ * @since
+ */
+ public boolean forceDataSourceUpdate;
}