Example usage for Java com.vaadin.ui ComboBox fields, constructors, methods, implement or subclass
The text is from its open source code.
ComboBox(String caption) Constructs an empty combo box, whose content can be set with #setDataProvider(DataProvider) or #setItems(Collection) . | |
ComboBox(DataCommunicator Constructs and initializes an empty combo box. | |
ComboBox() Constructs an empty combo box without a caption. | |
ComboBox(String caption, Collection Constructs a combo box with a static in-memory data provider with the given options. |
Registration | addBlurListener(BlurListener listener) |
Registration | addFocusListener(FocusListener listener) |
Registration | addValueChangeListener(HasValue.ValueChangeListener |
DataProvider | getDataProvider() |
void | setDataProvider(ListDataProvider Sets a list data provider as the data provider of this combo box. |
void | setEmptySelectionAllowed(boolean emptySelectionAllowed) Sets whether the user is allowed to select nothing in the combo box. |
void | setItemCaptionGenerator(ItemCaptionGenerator |
void | setItemIconGenerator(IconGenerator |
void | setItems(Collection 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. |
void | setItems(Stream 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. |
void | setItems(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. |
void | setNewItemHandler(NewItemHandler newItemHandler) Sets the handler that is called when user types a new item. |
void | setPageLength(int pageLength) Sets the page length for the suggestion popup. |
void | setScrollToSelectedItem(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. |
void | setTextInputAllowed(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. |