diff options
author | Jonatan Kronqvist <jonatan@vaadin.com> | 2014-04-10 20:54:08 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-04-11 06:17:48 +0000 |
commit | f374bc72f5fe3535600551a14eb3df2d97889ba2 (patch) | |
tree | 44fe4905d2201d391dbb040ea8a55e3d8f561f27 /server/src | |
parent | 34029194d6a20b00ed7a778267ba69121d1ccb0e (diff) | |
download | vaadin-framework-f374bc72f5fe3535600551a14eb3df2d97889ba2.tar.gz vaadin-framework-f374bc72f5fe3535600551a14eb3df2d97889ba2.zip |
Make ComboBox always immediate (#4054)
Change-Id: I34525b7d9e78ede7f9533869326ca0c08474963a
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/com/vaadin/ui/ComboBox.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/ComboBox.java b/server/src/com/vaadin/ui/ComboBox.java index 5fb2f81011..da29618efe 100644 --- a/server/src/com/vaadin/ui/ComboBox.java +++ b/server/src/com/vaadin/ui/ComboBox.java @@ -103,22 +103,30 @@ public class ComboBox extends AbstractSelect implements private boolean textInputAllowed = true; public ComboBox() { - setNewItemsAllowed(false); + initDefaults(); } public ComboBox(String caption, Collection<?> options) { super(caption, options); - setNewItemsAllowed(false); + initDefaults(); } public ComboBox(String caption, Container dataSource) { super(caption, dataSource); - setNewItemsAllowed(false); + initDefaults(); } public ComboBox(String caption) { super(caption); + initDefaults(); + } + + /** + * Initialize the ComboBox with default settings + */ + private void initDefaults() { setNewItemsAllowed(false); + setImmediate(true); } /** |