You can't do everything in one statement (well, actually you can, but it
gets unreadable and unless you are a C programmer, you won't want to do it
like that)
RadioButton rb = new RadioButton("group", radioButtonText);
rb.addClickListener(listener);
editItemsRadioPanel.add(rb);
Ian
http://examples.roughian.com
2008/12/28 [email protected] <[email protected]>
>
> Hi,
>
> Cheers for your reply. The example does not say how to use it for
> Radio Buttons. I can not get my head round how to implement a click
> listener for a Radio button. You can only have 2 parameters for a
> radio button, and I am already using 2. The examples seem to add a
> click listener as a 'second' parameter. How can I add a click listener
> if I already have 2 parameters?
>
> Regards,
> Jack
>
> On Dec 28, 2:07 pm, "Ian Bambury" <[email protected]> wrote:
> > I think you just need a clicklistener don't you? And then check the state
> of
> > the radiobutton.
> > Same thing ashttp://examples.roughian.com/#Widgets~CheckBox
> > or have a look athttp://examples.roughian.com/#Listeners~ClickListener
> >
> > Ian
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---