Example usage for Java com.vaadin.v7.ui ComboBox fields, constructors, methods, implement or subclass
The text is from its open source code.
ComboBox(String caption, Collection> options) | |
ComboBox(String caption, Container dataSource) | |
ComboBox() |
Item | addItem(Object itemId) Create a new item into container. |
void | addItems(Object... itemId) Adds given items with given item ids to container. |
boolean | containsId(Object itemId) Tests, if the collection contains an item with given id. |
String | getCaption() Gets the caption of the component. |
Item | getItem(Object itemId) Gets the item from the container with given id. |
Collection> | getItemIds() Gets the item Id collection from the container. |
Object | getValue() Gets the selected item id or in multiselect mode a set of selected ids. |
boolean | isVisible() Tests the visibility property of the component. |
boolean | removeItem(Object itemId) |
void | setCaption(String caption) Sets the caption of the component. |
void | setEnabled(boolean enabled) Enables or disables the component. |
void | setItemCaption(Object itemId, String caption) Override the caption of an item. |
void | setItemCaptionMode(ItemCaptionMode mode) Sets the item caption mode. |
void | setNullSelectionAllowed(boolean nullSelectionAllowed) Allow or disallow empty selection by the user. |
void | setPageLength(int pageLength) Sets the page length for the suggestion popup. |
void | setValue(Object newValue) Sets the visible value of the property. |
void | setVisible(boolean visible) Sets the visibility of the component. |
void | setWidth(float width, Unit unit) Sets the width of the object. |