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

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


  /**
   * insert css in HTML-header, wich overwrites default css
   */
  public void insertHeaderCss() {
    JSAndCSSComponent jac = new JSAndCSSComponent("cmc-css", this.getClass(), null, "olat-preview.css", true);
    myContent.put("cmc-css", jac);
  }
View Full Code Here


        .getPackageVelocityRoot(JavaScriptTracingController.class)
        + "/JSTracing.html", trans, this);

    // The javascript ajax tracing library, attached to the dummy velocity
    // container so that it gets included
    JSAndCSSComponent tmJs = new JSAndCSSComponent("js",
        JavaScriptTracingController.class,
        new String[] { "JSTracing.js" }, null, false);
    mainVC.put("js", tmJs);

    // The mapper that handels all log postings
View Full Code Here

    super(ureq, wControl);
    this.gprovider = provider;
    myContent = createVelocityContainer("autocomplete");
   
    // let the scripts (.js files) and css files be included when this controller's main component is rendered
    JSAndCSSComponent jscss = new JSAndCSSComponent("jac", this.getClass(), null, "autocompleter.css", false);
    myContent.put("jac", jscss); // we include it in the render tree (but we do not need $r.render(...)), so that the custom js and css are included
    if (label != null) {
      myContent.contextPut("autocompleter_label", label);
    }
    // configure the autocompleter whether to accept "," or ";" as separating tokens in case of allowMultipleEntries
View Full Code Here

      logError("Can not parse log viewer cron expression", e);
    } catch (SchedulerException e) {
      logError("Problem when creating log viewer scheduler", e);
    }
    // Add one second interval to update the log view every second
    JSAndCSSComponent jsc = new JSAndCSSComponent("intervall", this.getClass(), null, null, false, null, 3000);
    jsc.requireFullPageRefresh(); // interval not working otherwise
    logViewerVC.put("updatecontrol", jsc);
    // Add manual update link in case the automatic refresh does not work
    updateLink = LinkFactory.createButtonSmall("logviewer.link.update", logViewerVC, this);
    stopLink = LinkFactory.createButtonSmall("logviewer.link.stop", logViewerVC, this);
   
View Full Code Here

    Link showAllLink = LinkFactory.createCustomLink(REGISTER_LINK + "all", REGISTER_LINK + "all", "glossary.list.showall", Link.LINK,
        glistVC, this);
    glistVC.contextPut("showAllLink", showAllLink);

    // add javascript and css file
    JSAndCSSComponent tmJs = new JSAndCSSComponent("glossaryJS", this.getClass(), null, "glossary.css", true);
    glistVC.put("glossaryJS", tmJs);

    putInitialPanel(glistVC);
  }
View Full Code Here

   
    Link refreshList = LinkFactory.createButtonXSmall("im.refresh", summaryVC, this);
   
   
    //set polling time of peridocal updater
    jsc = new JSAndCSSComponent("intervall2", this.getClass(), null, null, false, null, InstantMessagingModule.getIDLE_POLLTIME());
    groupchatVC.put("checkfordirtycomponents", jsc);
   
    //set defaults
    groupChatMsgFieldVC.contextPut("groupChatMessages", "");
    boolean ajaxOn = getWindowControl().getWindowBackOffice().getWindowManager().isAjaxEnabled();
View Full Code Here

   * @param wControl
   */
  public ConnectedClientsListController(UserRequest ureq, WindowControl wControl) {
    super(ureq, wControl);
    //this controller gets rendered in a new window, we have to make sure polling works also in this window
    JSAndCSSComponent jsComp = new JSAndCSSComponent("pollintervall", this.getClass(), null, null, false, null, InstantMessagingModule.getIDLE_POLLTIME());
    content.put("polling", jsComp);
    locale = ureq.getLocale();
    f = Formatter.getInstance(locale);
    refreshButton = LinkFactory.createButtonSmall("command.refresh", content, this);
    updateUI(ureq, true);
View Full Code Here

    if (credit_mode == null) scorm_lesson_mode = ScormConstants.SCORM_MODE_NOCREDIT;
    scorm_lesson_mode = lesson_mode;
   
    myContent = createVelocityContainer("display");
    Locale loc = ureq.getLocale();
    JSAndCSSComponent jsAdapter = new JSAndCSSComponent("apiadapter", this.getClass(), new String[] {"scormApiAdapter.js"}, null, true);
    myContent.put("apiadapter", jsAdapter);
   
    // init SCORM adapter
    scormAdapter = new OLATApiAdapter(apiCallback)
View Full Code Here

    this.userJid = InstantMessagingModule.getAdapter().getUserJid(this.username);
    boolean ajaxOn = getWindowControl().getWindowBackOffice().getWindowManager().isAjaxEnabled();
    chatContent.contextPut("isAjaxMode", Boolean.valueOf(ajaxOn));
   
    //  checks with the given intervall if dirty components are available to rerender
    jsc = new JSAndCSSComponent("intervall", this.getClass(), null, null, false, null, InstantMessagingModule.getCHAT_POLLTIME());
    chatContent.put("updatecontrol", jsc);
   
    InstantMessagingModule.getAdapter().getClientManager().registerEventListener(username, this, false);
    sendMessageForm = new SendMessageForm(ureq, getWindowControl());
    sendMessageForm.addControllerListener(this);
View Full Code Here

      }});
    pollThread.setDaemon(true);
    pollThread.start();
   
    // activate polling
    mainVc.put("updatecontrol", new JSAndCSSComponent("intervall", this.getClass(), null, null, false, null, 3000));
   
    // add a few buttons
    syncLong = LinkFactory.createButtonSmall("sync.long", mainVc, this);
    syncShort = LinkFactory.createButtonSmall("sync.short", mainVc, this);
    testPerf  = LinkFactory.createButtonSmall("testPerf", mainVc, this);
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.