public GuiDemoTooltipsController(UserRequest ureq, WindowControl wControl) { super(ureq, wControl); Link button = LinkFactory.createButton("button", content, this); button.setTooltip("tooltip.content"); Link linkT = LinkFactory.createLink("linkT", content, this); linkT.setTooltip("tooltip.content"); Link link1 = LinkFactory.createLink("link1", content, this); link1.setTooltip("tooltip.content"); Link link2 = LinkFactory.createLink("link2", content, this); link2.setTooltip("tooltip.content"); // link with component content /** * works when passing a custom html id like id="blalala" and then fetching the content from this * id with getElementById("id").innerHTML but with the component the component is not invisible * and gets renderer somewhere and somehow not */ LinkFactory.createLink("link3", content, this); content.put("tooltipContent", tooltipContent); link4 = LinkFactory.createLink("link4", tooltipContent, this); // add source view control Controller sourceview = new SourceViewController(ureq, wControl, this.getClass(), content); content.put("sourceview", sourceview.getInitialComponent()); putInitialPanel(content); }
private void setLinks() { importLink = LinkFactory.createCustomLink( "cptreecontroller.importlink", "cptreecontroller.importlink", null, Link.NONTRANSLATED, contentVC, this); importLink.setCustomEnabledLinkCSS("o_cpeditor_import"); importLink.setTooltip(translate("cptreecontroller.importlink_title"), false); importLink.setTitle(translate("cptreecontroller.importlink_title")); newLink = LinkFactory.createCustomLink( "cptreecontroller.newlink", "cptreecontroller.newlink", null, Link.NONTRANSLATED, contentVC, this); newLink.setCustomEnabledLinkCSS("o_cpeditor_new"); newLink.setTooltip(translate("cptreecontroller.newlink_title"), false); newLink.setTitle(translate("cptreecontroller.newlink_title")); copyLink = LinkFactory.createCustomLink( "cptreecontroller.copylink", "cptreecontroller.copylink", null, Link.NONTRANSLATED, contentVC, this); copyLink.setTooltip(translate("cptreecontroller.copylink_title"), false); copyLink.setTitle(translate("cptreecontroller.copylink_title")); copyLink.setCustomEnabledLinkCSS("o_cpeditor_copy"); deleteLink = LinkFactory.createCustomLink( "cptreecontroller.deletelink", "cptreecontroller.deletelink", null, Link.NONTRANSLATED, contentVC, this); deleteLink.setTooltip(translate("cptreecontroller.deletelink_title"), false); deleteLink.setTitle(translate("cptreecontroller.deletelink_title")); deleteLink.setCustomEnabledLinkCSS("o_cpeditor_delete"); }