Skip to content

Instantly share code, notes, and snippets.

@cancerberoSgx
Created March 12, 2013 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cancerberoSgx/5145841 to your computer and use it in GitHub Desktop.
Save cancerberoSgx/5145841 to your computer and use it in GitHub Desktop.
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