* Helper to create panels for different theme variants...
*/
private Panel createPanelWith(String caption, String styleName) {
VerticalLayout panelLayout = new VerticalLayout();
panelLayout.setMargin(true);
Panel panel = new Panel(caption, panelLayout);
panelLayout.addComponent(new Label("Some content"));
panel.setIcon(new ThemeResource(parent.ICON_URL));
panel.setComponentError(new UserError("A error message..."));
panel.setId("layout" + debugIdCounter++);
if (styleName != null) {
panel.addStyleName(styleName);
}
return panel;
}