96979899100101102103104105106107
}); factory.add(TypeLookup.class, new BoundWidgetProvider() { public BoundWidget get() { TextBox label = new TextBox(); label.setRenderer(new Renderer() { public Object render(Object o) { return (o == null) ? "" : ((TypeLookup) o).name; } });
2021222324252627282930
public FlickrExample() { super(); VerticalPanel vp = new VerticalPanel(); this.initWidget(vp); TextBox box = new TextBox(false); Label title = new Label(); vp.add(box); vp.add(title);
1819202122232425262728
public class FlickrExample extends BoundVerticalPanel<Object>{ public FlickrExample(){ super(new BoundWidgetTypeFactory(), null); TextBox box = new TextBox(false); Label title = new Label(); add(box); add(title);