summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2015-11-09 12:42:25 +0200
committerArtur Signell <artur@vaadin.com>2016-08-08 09:44:39 +0000
commit6d493408ed7a53c42e57cd87b43548403ea5e3b7 (patch)
tree6d8e1f804cee69ccb37508ab51033321ea144148 /shared
parent9142256e85bb3e8854ddfc8c1cb1f9660af58dc8 (diff)
downloadvaadin-framework-6d493408ed7a53c42e57cd87b43548403ea5e3b7.tar.gz
vaadin-framework-6d493408ed7a53c42e57cd87b43548403ea5e3b7.zip
Move ComboBox filtering mode to state (#19929)
Change-Id: I7eaf2dae59133745d6a7c686503625f1f5216c52
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxState.java7
1 files changed, 7 insertions, 0 deletions
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 21bf4b9340..6eae3fc46e 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
@@ -48,4 +48,11 @@ public class ComboBoxState extends AbstractSelectState {
* Number of items to show per page or 0 to disable paging.
*/
public int pageLength = 10;
+
+ /**
+ * Current filtering mode (look for match of the user typed string in the
+ * beginning of the item caption or anywhere in the item caption).
+ */
+ public FilteringMode filteringMode = FilteringMode.STARTSWITH;
+
}