com.vaadin.shared.ui.nativeselect.
Class NativeSelectState
- java.lang.Object
-
- com.vaadin.shared.communication.SharedState
-
- com.vaadin.shared.AbstractComponentState
-
- com.vaadin.shared.ui.TabIndexState
-
- com.vaadin.shared.AbstractFieldState
-
- com.vaadin.shared.ui.abstractlisting.AbstractListingState
-
- com.vaadin.shared.ui.AbstractSingleSelectState
-
- com.vaadin.shared.ui.nativeselect.NativeSelectState
-
All Implemented Interfaces:
public class NativeSelectState extends AbstractSingleSelectState
Shared state for
NativeSelect
.Since:
8.0
Author:
Vaadin Ltd.
See Also:
-
-
Field Summary
Fields Modifier and Type Field Description boolean
emptySelectionAllowed
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.
String
emptySelectionCaption
Caption for item which represents empty selection.
static String
STYLE_NAME
The default primary style name for
NativeSelect
.int
visibleItemCount
The number of items that are visible.
-
Fields inherited from class com.vaadin.shared.ui.AbstractSingleSelectState
selectedItemKey
-
Fields inherited from class com.vaadin.shared.AbstractFieldState
readOnly, required
-
Fields inherited from class com.vaadin.shared.ui.TabIndexState
tabIndex
-
Fields inherited from class com.vaadin.shared.AbstractComponentState
caption, captionAsHtml, description, descriptionContentMode, errorLevel, errorMessage, height, id, primaryStyleName, styles, width
-
Fields inherited from class com.vaadin.shared.communication.SharedState
enabled, registeredEventListeners, resources
-
-
Constructor Summary
Constructors Constructor Description NativeSelectState()
-
-
-
Field Detail
-
STYLE_NAME
public static final String STYLE_NAME
The default primary style name for
NativeSelect
.See Also:
-
emptySelectionAllowed
public boolean emptySelectionAllowed
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.
-
emptySelectionCaption
public String emptySelectionCaption
Caption for item which represents empty selection.
-
visibleItemCount
public int visibleItemCount
The number of items that are visible. If only one item is visible, then the box will be displayed as a drop-down list.
Since:
8.1
-
-