diff options
author | Henri Sara <hesara@vaadin.com> | 2015-11-05 10:51:56 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2016-08-08 06:47:17 +0000 |
commit | 0e1a271cc5e465a774f0d729fc9ad38b300757de (patch) | |
tree | bfc9113541d6b2a638442e33886e59b7a283a59b /shared | |
parent | 2879cfcdff148002a59d5e6c486fc769ecba5aa3 (diff) | |
download | vaadin-framework-0e1a271cc5e465a774f0d729fc9ad38b300757de.tar.gz vaadin-framework-0e1a271cc5e465a774f0d729fc9ad38b300757de.zip |
Use shared state in ComboBox (#19229)
This change uses shared state for the read-only flag, text
input allowed flag and input prompt.
Change-Id: If770a3d9be96d10c3a19654b398bc2f5ddfb7e67
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxState.java | 18 |
1 files changed, 18 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 46e24aa266..1856aac00d 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 @@ -26,4 +26,22 @@ public class ComboBoxState extends AbstractSelectState { { primaryStyleName = "v-filterselect"; } + + /** + * If text input is not allowed, the ComboBox behaves like a pretty + * NativeSelect - the user can not enter any text and clicking the text + * field opens the drop down with options. + * + * @since + */ + public boolean textInputAllowed = true; + + /** + * A textual prompt that is displayed when the select would otherwise be + * empty, to prompt the user for input. + * + * @since + */ + public String inputPrompt = null; + } |