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);
}
}