Package org.olat.core.gui

Examples of org.olat.core.gui.GlobalSettings


      CoreSpringFactory.getBean(PopupBrowserWindowControllerCreator.class);
   
   
   
    final AJAXFlags aflags = new AJAXFlags(this);
    globalSettings = new GlobalSettings() {

      public int getFontSize() {
        return WindowManagerImpl.this.getFontSize();
      }
View Full Code Here


   * @param sb
   * @param source
   * @param args
   */
  public void render(StringOutput sb, Component source, String[] args) {
    GlobalSettings gset = getGlobalSettings();
    boolean ajaxon = gset.getAjaxFlags().isIframePostEnabled();
    // wrap with div's so javascript can replace this component by doing a document.getElementById(cid).innerHTML and so on.
    boolean domReplaceable = source.isDomReplaceable();
    boolean useSpan = source.getSpanAsDomReplaceable();
    boolean forceDebugDivs = gset.isIdDivsForced();

    if (source.isVisible()) {
      int lev = renderResult.getNestedLevel();
      if (lev > 42) throw new AssertException("components were nested more than 42 times, assuming endless loop bug: latest comp name: "+source.getComponentName());
      Translator componentTranslator = source.getTranslator();
View Full Code Here

      // sync dispatching per window to avoid rendering problems
      // when user repeateadly presses reload, and also to distribute bandwidth more
      // evenly.
      // postcondition: each controller's events are called by one gui-thread at a time only.
     
      GlobalSettings gsettings = wbackofficeImpl.getGlobalSettings();
      boolean bgEnab = gsettings.getAjaxFlags().isIframePostEnabled();
      //System.out.println("in window:");
      // -------------------------
      // ----- ajax mode ---------
      // -------------------------
      if (bgEnab && (ureq.getMode() & 1) == 1) {
View Full Code Here

          root.put("cc", dirties.size());
          root.put("wts", timestamp);
          JSONArray ja = new JSONArray();
          root.put("cps", ja);
         
          GlobalSettings gsettings = wbackofficeImpl.getGlobalSettings();
         
          synchronized(render_mutex) { //o_clusterOK by:fj
            // we let all dirty components render themselves.
            // not offered (since not usability-useful) is the include of new js-libraries and css-libraries here, since this may invoke a screen reload
            // which disturbes the user and lets him/her loose the focus and the cursor.
View Full Code Here

      Translator pageTranslator = new PackageTranslator(bundleName, I18nModule.getDefaultLocale());
      // Open velocity page for this help page
      String pagePath = bundleName.replace('.', '/') + ContextHelpModule.CHELP_DIR + page;
      VelocityContainer container =  new VelocityContainer("contextHelpPageVC", pagePath, pageTranslator, null);         
      Context ctx = container.getContext();   
      GlobalSettings globalSettings = new GlobalSettings() {
        public int getFontSize() { return 100;}
        public AJAXFlags getAjaxFlags() { return new EmptyAJAXFlags();}
        public ComponentRenderer getComponentRendererFor(Component source) {
          return null;
        }
View Full Code Here

TOP

Related Classes of org.olat.core.gui.GlobalSettings

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.