我正在尝试将 ButtonElement 包装到 Button 中:
@UiField ButtonElement myButton;
Button theButton = Button.wrap(myButton);
但是,我收到此错误:
@UiField myButton, template field and owner field types don't match: com.google.gwt.dom.client.ButtonElement is not assignable to com.google.gwt.user.client.ui.Button