public HelpOverlay addOverlay(String caption, String text, String style) { HelpOverlay o = new HelpOverlay(); o.setCaption(caption); o.addComponent(new Label(text, ContentMode.HTML)); o.setStyleName(style); // ui.addWindow(o); overlays.add(o); return o; }
protected HelpOverlay addOverlay(String caption, String text, String style) { HelpOverlay o = new HelpOverlay(); o.setCaption(caption); Label label = new Label(text, ContentMode.HTML); label.setPrimaryStyleName("help-overlay-content"); o.addComponent(label); o.setStyleName(style); // ui.addWindow(o); overlays.add(o); return o; }
public void switchHelpOverlayPage(HelpOverlay helpOverlay) { helpOverlay.nextPage(); }
public void closeAll() { for (HelpOverlay overlay : overlays) { overlay.close(); } overlays.clear(); }