GWT: How can I add UiBinder xml layout to my Widget? -


I have a button that is a direct line of GWT 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); } (...)}   

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:

  @Override public widget asWidget () {return widget; }   

Where the widget is declared:

  Private last widget widget;   

And you started in the constructor:

  widget = ui.createAndBindUi (this);   

Hope this helps

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -