thanks for the info

On Fri, Oct 1, 2010 at 5:27 AM, Thomas Broyer <[email protected]> wrote:
>
> On Sep 30, 6:56 pm, Patrick Julien <[email protected]> wrote:
>> Is there a class that integrates the two?  same for check boxes?
>
> Hmm, CheckBox implements IsEditor<LeafValueEditor<Boolean>> so it
> should work OK for a boolean value.
>
> RadioButton extends CheckBox so it's a "boolean editor", but radio
> buttons are not about boolean things... :-/
>
> I think for checkbox lists (multi-valued selection) and radio button
> lists (and even a Cell-widget-based selector), you'd (currently) have
> to make your own Editor<?> class.
> It seems hard to provide such editors out-of-the-box because there are
> many use cases, depending on whether you want the value be the "index"
> in a list of acceptable values, the "form value" of the checkbox/
> radiobutton, or an object in a list of acceptable values (this is
> similar to why ListBox does not implement HasValue); not to mention
> how you'd like your checkboxes/radiobuttons be laid out!
>
> (Also noteworthy: SimpleCheckBox implements neither IsEditor or even
> HasValue; and for single selection within a dropdown list, there's
> ValueListBox)
>
> --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to