On Sep 5, 9:11 am, Kiarash <[email protected]> wrote:
> I am trying to add a widget to a caption of a CaptionPanel. The
> problem is that CaptionPanel takes only:
> CaptionPanel(String str)
> CaptionPanel(HTML html)
>
> and not a widget as a gwt-Checkbox e t c.
>
> How can I add a gwt-widget to a caption of CaptionPanel?
> thanx for any suggestions
CaptionPanel is nothing more than a <fieldset>+<legend>, so you'd
better use those HTML elements in an HTMLPanel, which will allow you
to put (almost) whatever you want in the <legend>.
If you use UiBinder, it could look like this:
<fieldset>
<legend><g:Checkbox ui:field="fieldsetLegend">Fieldset legend</
g:Checkbox></legend>
...whatever you want...
</fieldset>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.