Created
March 12, 2013 18:56
-
-
Save cancerberoSgx/5145841 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.sgx.raphael4gwt.raphael.widget; | |
import com.google.gwt.core.client.GWT; | |
import com.google.gwt.uibinder.client.UiBinder; | |
import com.google.gwt.user.client.ui.Composite; | |
import com.google.gwt.user.client.ui.Widget; | |
public class MyPaper extends Composite { | |
private static MyPaperUiBinder uiBinder = GWT.create(MyPaperUiBinder.class); | |
interface MyPaperUiBinder extends UiBinder<Widget, MyPaper> { | |
} | |
int width; | |
public MyPaper() { | |
initWidget(uiBinder.createAndBindUi(this)); | |
//at this point I sould expect that setWidth() already be called and the width attribute is ready to work. | |
//but it is not ! | |
//that would only happens at the Parent widget's createAndBindUi... | |
} | |
public void setWidth(int width) { | |
this.width = width; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment