public class ComboBoxState extends AbstractSingleSelectState
| Modifier and Type | Field and Description |
|---|---|
boolean |
allowNewItems
True to allow the user to send new items to the server, false to only
select among existing items.
|
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.
|
int |
pageLength
Number of items to show per page or 0 to disable paging.
|
String |
placeholder
The prompt to display in an empty field.
|
boolean |
scrollToSelectedItem
True to automatically scroll the ComboBox to show the selected item,
false not to search for it in the results.
|
String |
selectedItemCaption
The caption of the currently selected item or
null if no item is
selected. |
String |
selectedItemIcon
Selected item icon uri.
|
String |
suggestionPopupWidth
Suggestion pop-up's width as a CSS string.
|
boolean |
textInputAllowed
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.
|
selectedItemKeyreadOnly, requiredtabIndexcaption, captionAsHtml, description, descriptionContentMode, errorMessage, height, id, primaryStyleName, styles, widthenabled, registeredEventListeners, resources| Constructor and Description |
|---|
ComboBoxState() |
public boolean textInputAllowed
@NoLayout public String placeholder
public int pageLength
public String suggestionPopupWidth
public boolean allowNewItems
public boolean emptySelectionAllowed
public boolean scrollToSelectedItem
public String selectedItemCaption
null if no item is
selected.public String emptySelectionCaption
public String selectedItemIcon
Copyright © 2017 Vaadin Ltd. All rights reserved.