diff options
Diffstat (limited to 'shared/src/main/java')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/nativeselect/NativeSelectState.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/nativeselect/NativeSelectState.java b/shared/src/main/java/com/vaadin/shared/ui/nativeselect/NativeSelectState.java index e4ff336e4d..c33cc66f82 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/nativeselect/NativeSelectState.java +++ b/shared/src/main/java/com/vaadin/shared/ui/nativeselect/NativeSelectState.java @@ -31,6 +31,18 @@ public class NativeSelectState extends AbstractSingleSelectState { */ public static final String STYLE_NAME = "v-select"; + /** + * True to allow selecting nothing (a special empty selection item is shown + * at the beginning of the list), false not to allow empty selection by the + * user. + */ + public boolean emptySelectionAllowed = true; + + /** + * Caption for item which represents empty selection. + */ + public String emptySelectionCaption = ""; + { primaryStyleName = STYLE_NAME; } |