Editor Framework and Multi Select Listbox

334 views
Skip to first unread message

Alex opn

unread,
Jul 19, 2012, 9:16:40 AM7/19/12
to google-we...@googlegroups.com
Hello all,

I tried to implement a "MultiSelectValueListBox" based on the ValueListBox but I did not come far. Not even worth posting my messy code here :)

I hope anyone has done this already and can help me out on how to start or give some ideas how to approach this. I quickly ran out of ideas.

I am wondering why this is not shipped with the Editor Framework anyway and why no one seems to need this functionality? Googled a bit and only found one question on Stackoverflow regarding this. [1]

[1] GWT ValueListBox: can it support more than a single selection?

Regards
Alex

Thomas Broyer

unread,
Jul 19, 2012, 12:22:03 PM7/19/12
to google-we...@googlegroups.com
It depends on the widget you intend to use for display.
Given that ListBox has no notion of "value" other than a bare String, I'd rather go with CellList or CellTable (but if Strings are OK, then just use a ListBox).
The easiest would then be to use a LeafValueEditor<Set<MyValue>> wrapping the SelectionModel; similar actually to the ValuePicker.
We've actually implemented just that a few days ago in a proto.

Alex opn

unread,
Jul 20, 2012, 6:20:35 AM7/20/12
to google-we...@googlegroups.com
Thanks a lot again, works good and was pretty easy to implement! : ) I decided to go for a CellList with a MultiSelectionModel by the way.
Reply all
Reply to author
Forward
0 new messages