If your goal is to do a treatment when the event occurs on the child widget you
must implement the corresponding interface in your custom Widget. for
example:
public class MyWidget extends Composite implements HasClickHandlers
{
private TextBox text = new TextBox();
private PushButton button = new PushButton("MyButton");
public MyWidget()
{
....
initWidget(...);
}
@Override
public HandlerRegistration addClickHandler(ClickHandler handler)
{
return button.addClickHandler(handler);
}
}
--
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.