loadApi(new Runnable() {
public void run() {
Toolbar toolbar = new Toolbar();
Component component = Component.create();
component.setType(Type.HTMLCODE);
component.setDataSource("datasource123htmlcode");
component.setGadget("gadget123htmlcode");
toolbar.addComponent(component);
component = Component.create();
component.setType(Type.HTMLCODE);
component.setDataSource("datasource123htmlcode2");
component.setGadget("gadget123htmlcode2");
toolbar.addComponent(component);
component = Component.create();
component.setType(Type.CSV);
component.setDataSource("datasource123csv");
component.setGadget("gadget123csv");
toolbar.addComponent(component);
component = Component.create();
component.setType(Type.HTML);
component.setDataSource("datasource123html2");
component.setGadget("gadget123html2");
toolbar.addComponent(component);
component = Component.create();
component.setType(Type.IGOOGLE);
component.setDataSource("datasource123igoogle");
component.setGadget("gadget123igoogle2");
toolbar.addComponent(component);
RootPanel.get().add(toolbar);
}
});