Friday, July 20, 2012

Re: Editor Framework and Multi Select Listbox

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.

Am Donnerstag, 19. Juli 2012 18:22:03 UTC+2 schrieb Thomas Broyer:
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.

On Thursday, July 19, 2012 3:16:40 PM UTC+2, Alex opn wrote:
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

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/X-VQF4OoyxYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment