Java com.vaadin.ui ComboBox fields, constructors, methods, implement or subclass

Example usage for Java com.vaadin.ui ComboBox fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.vaadin.ui ComboBox.

The text is from its open source code.

Subclass

com.vaadin.ui.ComboBox has subclasses.
Click this link to see all its subclasses.

Constructor

ComboBox(String caption)
Constructs an empty combo box, whose content can be set with #setDataProvider(DataProvider) or #setItems(Collection) .
ComboBox(DataCommunicator dataCommunicator)
Constructs and initializes an empty combo box.
ComboBox()
Constructs an empty combo box without a caption.
ComboBox(String caption, Collection options)
Constructs a combo box with a static in-memory data provider with the given options.

Method

RegistrationaddBlurListener(BlurListener listener)
RegistrationaddFocusListener(FocusListener listener)
RegistrationaddValueChangeListener(HasValue.ValueChangeListener listener)
DataProvidergetDataProvider()
voidsetDataProvider(ListDataProvider listDataProvider)
Sets a list data provider as the data provider of this combo box.
voidsetEmptySelectionAllowed(boolean emptySelectionAllowed)
Sets whether the user is allowed to select nothing in the combo box.
voidsetItemCaptionGenerator(ItemCaptionGenerator itemCaptionGenerator)
voidsetItemIconGenerator(IconGenerator itemIconGenerator)
voidsetItems(Collection items)

Filtering will use a case insensitive match to show all items where the filter text is a substring of the caption displayed for that item.

voidsetItems(Stream streamOfItems)

Filtering will use a case insensitive match to show all items where the filter text is a substring of the caption displayed for that item.

voidsetItems(T... items)

Filtering will use a case insensitive match to show all items where the filter text is a substring of the caption displayed for that item.

voidsetNewItemHandler(NewItemHandler newItemHandler)
Sets the handler that is called when user types a new item.
voidsetPageLength(int pageLength)
Sets the page length for the suggestion popup.
voidsetScrollToSelectedItem(boolean scrollToSelectedItem)
Sets whether to scroll the selected item visible (directly open the page on which it is) when opening the combo box popup or not.
voidsetTextInputAllowed(boolean textInputAllowed)
Sets whether it is possible to input text into the field or whether the field area of the component is just used to show what is selected.