Directory

ListBuilder - Vaadin Add-on Directory

ListBuilder is an enhanced version of TwinColSelect - offers item ordering and more! ListBuilder - Vaadin Add-on Directory
ListBuilder is an evolutionary enhancement of TwinColSelect (and is more or less based on it). I have myself needed this kind of component in a few client projects so I decided to write it under the Apache 2.0 license so others may use it too. Main enhancements: • Item order preserved! • Prettier buttons (with icons). • Button state is updated based on what is selected. • Fixes a few bugs from TwinColSelect which may result into simultaneously selected rows in both columns. • Allow adding style names to left and right column captions. Drawbacks: • You need to use the getOrderedValue() method to fetch the selected items in correct order; getValue() will return the selections as a Set similarly to TwinColSelect.
Online Demo (V6)
Online Demo (V7)
Source Code
Discussion Forum

ListBuilder version 0.1.0
null

ListBuilder version 0.5.0
- Removed getOrderedValue() method and fixed the generic setValue/getValue pair to work with Lists (ordered Collection classes). - Added select and unselect methods

ListBuilder version 0.6.0
Now preserves the original ordering of the items on the left-side list.

ListBuilder version 0.6.0.v7
Added basic Vaadin 7 support

ListBuilder version 0.7.0
* Revised selection handling. * Fixed an issue where ValueChangeEvent contained the previous value. * Now also fires a ValueChangeEvent when the item ordering is changed.

ListBuilder version 0.7.0.v7
Vaadin 7 beta 11 compliant version.

ListBuilder version 0.7.1.v7
* Fixed a bug in value change logic - now the most recent value is available in ValueChangeEvent. * Fixed a bug in focusing; changing the value previously blurred the selected value but now it should survive over value changes.

ListBuilder version 0.7.2.v7
Fixed non-functional required validation

ListBuilder version 0.7.3.v7
Finally fixed getValue() to return the correct ordered value - just like in the Vaadin 6 version.

ListBuilder version 0.7.4.v7
Fixes button issue

ListBuilder version 1.0.0.v8
Converted for Vaadin 8

ListBuilder version 1.0.0-v8-compatibility
This version is released to enable using ListSelect with the Vaadin 7 compatibility packages provided by Vaadin 8. This allows you to migrate from V7 to V8 with minimal effort. Styling has also been updated to use flex layouting instead of calculated sizes.