On 17 nov, 23:44, BrianV <brian.vet...@bluespace.com> wrote:
> There is - see CheckboxCell. It works fine, but it is not a collection
> of radio buttons.
>
> I did look at the GWT source for several other "Cell" objects and it
> looks straightforward to create a custom "RadioCell" that implements a
> single Radio button (using the CheckboxCell as a roadmap for how this
> is done). However, what would be the best way to cram 3 or 4 of them
> in a Cell? Is the CompositeCell the right mechanism for this? Is there
> anything special that my custom "RadioCell" would need to do to be a
> member of a "CompositeCell"?

I wouldn't use a CompositeCell (CompositeCell is more about the same
as a CellTable row but without the column-based layout).
The thing you'd have to take care of would be entering/exiting "edit
mode" (isEditing()) and focus management (i.e. resetFocus). It's easy
with the built-in cells as they only have a single focusable element
(check box, text box, select) but I suppose it could become tricky
with multiple radio buttons, to give the focus back to the appropriate
radio button in the cell.

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

Reply via email to