GWT: How can I add UiBinder xml layout to my Widget? -
I have a button that is a direct line of GWT The problem is that my button has not been sung. GWT creates some div and places the input element inside, but the layout I created in my uibinder xml file is not implemented. Where did the wrong happen? I'm not really sure, but it may be because it's because of the AsWidget () method Apply: Where the widget is declared: And you started in the constructor: Hope this helps PushButton . I want to add UIB & XML layout to my button to make my design easier. I have created
MyButton.ui.xml and I have the following content of
MyButton :
Class Mitton extends pushbutton {Interface UI extends UIBinder & lt; Widgets, Mytons & gt; {} Personal Static FINAL UI UI = GWT.create (UI.class); @UiConstructor Public MyButton () {super (); Ui.createAndBindUi (this); } (...)}
@Override public widget asWidget () {return widget; }
Private last widget widget;
widget = ui.createAndBindUi (this);
Comments
Post a Comment