Package org.olat.core.gui.components.htmlheader.jscss

Examples of org.olat.core.gui.components.htmlheader.jscss.JSAndCSSComponent


    iconButton = LinkFactory.createCustomLink("sonne", "cmd.sonne", "", Link.NONTRANSLATED, myContent, this);
    iconButton.setCustomEnabledLinkCSS("demoext_bild");
    iconButton.setCustomDisabledLinkCSS("demoext_bild");
   
    // let the scripts (.js files) and css files be included when this controller's main component is rendered
    JSAndCSSComponent jscss = new JSAndCSSComponent("jsAndCssForDemo", this.getClass(), new String[] {"script.js"}, "style.css", false);
    myContent.put("jsAndCssForDemo", jscss); // we include it in the render tree, so that the custom js and css are included
   
    // prepare an empty panel for displaying the selected user's home-page
    homepagePanel = new Panel("hpPanel");
    myContent.put("homepagepanel", homepagePanel);
View Full Code Here


    buttonLongTrans = LinkFactory.createButton("button.long.trans", mainVC, this);
   
    buttonCloseIcon = LinkFactory.createIconClose("This is the hovertext!", mainVC, this);
   
    // let the scripts (.js files) and css files be included when this controller's main component is rendered
    JSAndCSSComponent jscss = new JSAndCSSComponent("jsAndCssForDemo", this.getClass(), null, "style.css", false);
    mainVC.put("jsAndCssForDemo", jscss); // we include it in the render tree, so that the custom js and css are included
   
    link = LinkFactory.createLink("link", mainVC, this);
    linkBack = LinkFactory.createLinkBack(mainVC, this);
    linkExtern = LinkFactory.createCustomLink("link.ext", "link.ext", "link.ext", Link.LINK, mainVC, this)
View Full Code Here

    VelocityContainer vcOngoing = createVelocityContainer("courselogs_ongoing");
    vcOngoing.contextPut("body", translate("course.logs.ongoing", courseTitle));
    myPanel.setContent(vcOngoing);

    // initialize polling
    myPanel.put("updatecontrol", new JSAndCSSComponent("intervall", this.getClass(), null, null, false, null, 3000));
  }
View Full Code Here

    this(null, ureq, wControl, fileResource);
  }

  private void init(UserRequest ureq) {
    main = createVelocityContainer("index");
    JSAndCSSComponent jsAndCss;
    // Add html header js
    jsAndCss = new JSAndCSSComponent("qitjsandcss", this.getClass(), new String[] { "qti.js" }, null, true);
    main.put("qitjsandcss", jsAndCss);
   
    //
    mainPanel = new Panel("p_qti_editor");
    mainPanel.setContent(main);
View Full Code Here

  private void init(UserRequest ureq, Component tmComponent) {
    // add dom id for wrapper div
    tmContainer.contextPut("domId", domId);

    glossHelpJs = new JSAndCSSComponent("glossHelpJs", this.getClass(), new String[] { "glossaryhelper.js" }, "textmarker.css", true);
    tmContainer.put("glossHelpJs", glossHelpJs);
    glossHLJS = new JSAndCSSComponent("glossHLJS", this.getClass(), new String[] { "glossaryhighlighter.js" }, null, true);
    tmContainer.put("glossHLJS", glossHLJS);
   
    String glossFolderString = ((LocalFolderImpl)glossaryFolder).getBasefile().toString();
    tmContainer.contextPut("glossaryFolder", glossFolderString.replace("/", "."));
    tmContainer.contextPut("glossaryDefinitionMapperPath", glossaryDefinitionMapperPath);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.htmlheader.jscss.JSAndCSSComponent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.