Examples of MainLayoutController


Examples of org.olat.core.gui.control.generic.layout.MainLayoutController

   * @see org.olat.core.gui.components.htmlheader.jscss.CustomCSSProvider#getCustomCSS()
   */
  public CustomCSS getCustomCSS() {
    // delegate to content controller if of type main layout controller
    if (controller != null && controller instanceof MainLayoutController) {
        MainLayoutController layoutController = (MainLayoutController) controller;
        return layoutController.getCustomCSS();
      }
    return null;
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.layout.MainLayoutController

   * @see org.olat.core.gui.components.htmlheader.jscss.CustomCSSProvider#getCustomCSS()
   */
  public CustomCSS getCustomCSS() {
    // delegate to content controller if of type main layout controller
    if (controller != null && controller instanceof MainLayoutController) {
      MainLayoutController layoutController = (MainLayoutController) controller;
      layoutController.getCustomCSS();
    }
    return null;
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.layout.MainLayoutController

    // build up the context path
    OLATResourceable businessOres = re;
    ContextEntry ce = BusinessControlFactory.getInstance().createContextEntry(businessOres);
    WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ce, wControl)
 
    MainLayoutController ctrl = handler.getLaunchController(re.getOlatResource(), initialViewIdentifier, ureq, bwControl);
    if (ctrl == null) throw new AssertException("could not create controller for repositoryEntry "+re);
    if (ctrl instanceof MainLayoutController) {
      return ctrl;     
    } else {
      // add layout wrapper
      LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(ureq, wControl, null, null, ctrl.getInitialComponent(), null);
      layoutCtr.addDisposableChildController(ctrl); // dispose content on layout dispose
      return layoutCtr;
    }
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.layout.MainLayoutController

  /**
   * @see org.olat.navigation.SiteInstance#createController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
   */
  public MainLayoutController createController(UserRequest ureq, WindowControl wControl) {
    // for existing controller which are part of the main olat -> use the controllerfactory
    MainLayoutController c = ControllerFactory.createLaunchController(ORES_REPO, null, ureq, wControl, true);
    return c;
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.layout.MainLayoutController

   * @see org.olat.repository.handlers.RepositoryHandler#getLaunchController(org.olat.core.id.OLATResourceable java.lang.String, org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
   */
  public MainLayoutController getLaunchController(OLATResourceable res, String initialViewIdentifier, UserRequest ureq, WindowControl wControl) {
    Resolver resolver = new ImsRepositoryResolver(res);
    IQSecurityCallback secCallback = new IQPreviewSecurityCallback();
    MainLayoutController runController = res.getResourceableTypeName().equals(SurveyFileResource.TYPE_NAME) ?
      IQManager.getInstance().createIQDisplayController(res, resolver, AssessmentInstance.QMD_ENTRY_TYPE_SURVEY, secCallback, ureq, wControl)
      IQManager.getInstance().createIQDisplayController(res, resolver, AssessmentInstance.QMD_ENTRY_TYPE_SELF, secCallback, ureq, wControl);
      // use on column layout
      LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(ureq, wControl, null, null, runController.getInitialComponent(), null);
      layoutCtr.addDisposableChildController(runController); // dispose content on layout dispose
      return layoutCtr;
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.layout.MainLayoutController

    //Controller realController = new ScormAPIandDisplayController(ureq, wControl, true, null, cpRoot, res.getResourceableId().toString(), null, "browse", "no-credit");
    RepositoryEntry re = RepositoryManager.getInstance().lookupRepositoryEntry(res, false);
    if (re!=null) {
      ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapScormRepositoryEntry(re));
    }
    MainLayoutController realController = ScormMainManager.getInstance().createScormAPIandDisplayController(ureq, wControl, true, null, cpRoot, res.getResourceableId().toString(), null, "browse", "no-credit", false, false);
    return realController;
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.layout.MainLayoutController

  /**
   * @see org.olat.navigation.SiteInstance#createController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
   */
  public MainLayoutController createController(UserRequest ureq, WindowControl wControl) {
    MainLayoutController c = ControllerFactory.createLaunchController(ORES_OLATADMINS, null, ureq, wControl, true);
    return c;
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.layout.MainLayoutController

  /**
   * @see org.olat.navigation.SiteInstance#createController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
   */
  public MainLayoutController createController(UserRequest ureq, WindowControl wControl) {
    MainLayoutController c = ControllerFactory.createLaunchController(ORES_OLATUSERADMINS, null, ureq, wControl, true);
    return c;
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.layout.MainLayoutController

  /**
   * @see org.olat.navigation.SiteInstance#createController(org.olat.core.gui.UserRequest,
   *      org.olat.core.gui.control.WindowControl)
   */
  public MainLayoutController createController(UserRequest ureq, WindowControl wControl) {
    MainLayoutController c = ControllerFactory.createLaunchController(ORES_GROUPSMANAGEMENT, null, ureq, wControl, true);
    return c;
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.layout.MainLayoutController

  /**
   * @see org.olat.navigation.SiteInstance#createController(org.olat.core.gui.UserRequest,
   *      org.olat.core.gui.control.WindowControl)
   */
  public MainLayoutController createController(UserRequest ureq, WindowControl wControl) {
    MainLayoutController c = ControllerFactory.createLaunchController(ORES_GROUPS, null, ureq, wControl, true);
    return c;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.