panel.setSize("100%", "100%");
main.setWidget(panel);
}
private DashboardPanel createDashboard() {
DashboardPanel panel = new DashboardPanel(3);
SampleGadget gadget = new SampleGadget("Gadget 1", "Content of gadget 1", "Maximized content of gadget 1");
panel.addGadget(0, gadget);
gadget = new SampleGadget("Gadget 2", "Content of gadget 2", "Maximized content of gadget 2");
panel.addGadget(0, gadget);
gadget = new SampleGadget("Gadget 3", "Content of gadget 3");
panel.addGadget(0, gadget);
gadget = new SampleGadget("Gadget 4", "Content of gadget 4", "Maximized content of gadget 4");
panel.addGadget(1, gadget);
gadget = new SampleGadget("Gadget 5", "Content of gadget 5", "Maximized content of gadget 5");
panel.addGadget(1, gadget);
gadget = new SampleGadget("Gadget 6", "Content of gadget 6");
panel.addGadget(1, gadget);
gadget = new SampleGadget("Gadget 7", "Content of gadget 7", "Maximized content of gadget 7");
panel.addGadget(2, gadget);
gadget = new SampleGadget("Gadget 8", "Content of gadget 8", "Maximized content of gadget 8");
panel.addGadget(2, gadget);
gadget = new SampleGadget("Gadget 9", "Content of gadget 9");
panel.addGadget(2, gadget);
HTML widget = new HTML("Widget");
widget.setHeight("100px");
panel.addWidget(2, "The Widget", widget);
return panel;
}