In your java file you can call getWidget() to get the HeaderPanel, so you 
would probably define:

private HeaderPanel getHeaderPanel() {
  return (HeaderPanel) getWidget();
}

Alternatively you could assign a ui:field to your HeaderPanel and use 
@UiField in your java file to access it. Or you could change your UiBinder 
interface definition and constructor a bit so you have:

interface MyUiBinder extends UiBinder<HeaderPanel, MyHeaderPanelWidget> {}
private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);

public MyHeaderPanelWidget() {
  HeaderPanel headerPanel = uiBinder.createAndBindUi(this);
  initWidget(headerPanel);
}



-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/bP4-nAnzQ6IJ.
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.

Reply via email to