The ComboBoxMultiselect component is a client-side Widget. As example was used the ComboBox from Vaadin and the VFilterSelect from Vaadin.
<dependency> <groupId>org.vaadin.addons</groupId> <artifactId>vaadin-combobox-multiselect</artifactId> <version>2.0</version> </dependency> <repository> <id>vaadin-addons</id> <url>http://maven.vaadin.com/vaadin-addons</url> </repository>
No widgetset required.
Official releases of this add-on are available at Vaadin Directory. For Maven instructions, download and reviews, go to http://vaadin.com/addon/vaadin-combobox-multiselect
git clone https://github.com/bonprix/vaadin-combobox-multiselect mvn clean install cd demo mvn jetty:run
To see the demo, navigate to http://localhost:8080/
This component is developed as a part of a bonprix project with no public roadmap or any guarantees of upcoming releases. That said, the following features are planned for upcoming releases:
The issues for this add-on are tracked on its github.com page. All bug reports and feature requests are appreciated.
Contributions are welcome, but there are no guarantees that they are accepted as such. Process for contributing is the following:
Add-on is distributed under MIT License. For license terms, see LICENSE.txt.
vaadin-combobox-multiselect is written by members of Bonprix Handelsgesellschaft mbh:
Here is a simple example on how to try out the add-on component:
// Initialize a list with items List<NamedObject> list = new ArrayList<NamedObject>(); NamedObject vaadin = new NamedObject(2L, "Vaadin"); list.add(new NamedObject(1L, "Java")); list.add(vaadin); list.add(new NamedObject(3L, "Bonprix")); list.add(new NamedObject(4L, "Addon")); // Initialize the ComboBoxMultiselect final ComboBoxMultiselect<NamedObject> comboBoxMultiselect = new ComboBoxMultiselect<>(); comboBoxMultiselect.setPlaceholder("Type here"); comboBoxMultiselect.setCaption("ComboBoxMultiselect"); comboBoxMultiselect.setItems(list); comboBoxMultiselect.setValue(new HashSet<>(Arrays.asList(vaadin)));
For a more comprehensive example, see src/test/java/org/vaadin/template/demo/DemoUI.java