static boolean isTestMode() {
return ((ValoThemeUI) getCurrent()).testMode;
}
Component buildTestMenu() {
CssLayout menu = new CssLayout();
menu.addStyleName("large-icons");
Label logo = new Label("Va");
logo.setSizeUndefined();
logo.setPrimaryStyleName("valo-menu-logo");
menu.addComponent(logo);
Button b = new Button(
"Reference <span class=\"valo-menu-badge\">3</span>");
b.setIcon(FontAwesome.TH_LIST);
b.setPrimaryStyleName("valo-menu-item");
b.addStyleName("selected");
b.setHtmlContentAllowed(true);
menu.addComponent(b);
b = new Button("API");
b.setIcon(FontAwesome.BOOK);
b.setPrimaryStyleName("valo-menu-item");
menu.addComponent(b);
b = new Button("Examples <span class=\"valo-menu-badge\">12</span>");
b.setIcon(FontAwesome.TABLE);
b.setPrimaryStyleName("valo-menu-item");
b.setHtmlContentAllowed(true);
menu.addComponent(b);
return menu;
}