Panel result = new VerticalPanel();
PieDemo pieDemo = new PieDemo();
Widget pieWidget = pieDemo.getWidget();
result.add(pieWidget);
Toolbar toolbar = new Toolbar();
Component component = Component.create();
component.setType(Type.HTMLCODE);
component.setDataSource(DATA_SOURCE);
component.setGadget(GADGET);
toolbar.addComponent(component);
component = Component.create();
component.setType(Type.CSV);
component.setDataSource(DATA_SOURCE);
component.setGadget(GADGET);
toolbar.addComponent(component);
component = Component.create();
component.setType(Type.HTML);
component.setDataSource(DATA_SOURCE);
component.setGadget(GADGET);
toolbar.addComponent(component);
component = Component.create();
component.setType(Type.IGOOGLE);
component.setDataSource(DATA_SOURCE);
component.setGadget(GADGET);
toolbar.addComponent(component);
result.add(toolbar);
return result;
}