Package org.olat.core.commons.fullWebApp

Examples of org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController


   
    myContent.put("contentpackage", iframectr.getInitialComponent());

    if (activate) {
      if (previewMode) {
        LayoutMain3ColsPreviewController ctr = new LayoutMain3ColsPreviewController(ureq, getWindowControl(), (showMenu ? menuTree : null), null, myContent, "scorm" + resourceId);
        ctr.activate();
        columnLayoutCtr = ctr;
      } else {
        LayoutMain3ColsBackController ctr = new LayoutMain3ColsBackController(ureq, getWindowControl(), (showMenu ? menuTree : null), null, myContent, "scorm" + resourceId);
        ctr.activate();
        columnLayoutCtr = ctr;
      }
    } else {
      LayoutMain3ColsController ctr = new LayoutMain3ColsController(ureq, getWindowControl(), (showMenu ? menuTree : null), null, myContent, "scorm" + resourceId);
      columnLayoutCtr = ctr;     
View Full Code Here


   
    configVc = createVelocityContainer("config");
   
    configVc.put("previewsettingsform", psf.getInitialComponent());
    // Use layout wrapper for proper display. Use col3 as main column
    previewLayoutCtr = new LayoutMain3ColsPreviewController(ureq, wControl, null, null, configVc, null);
    listenTo(previewLayoutCtr); // for later auto disposal
   
  }
View Full Code Here

   * @param showMenu true to display the menu, false to hide the menu
   * @return A main layout preview controller
   */
  public LayoutMain3ColsPreviewController createMainLayoutPreviewController(UserRequest ureq, WindowControl wControl, VFSContainer rootContainer, boolean showMenu) {
    CPDisplayController cpCtr = new CPDisplayController(ureq, wControl, rootContainer, showMenu, true, null, null);   
    LayoutMain3ColsPreviewController layoutCtr = new LayoutMain3ColsPreviewController(ureq, wControl, cpCtr.getMenuComponent(), null, cpCtr.getInitialComponent(), rootContainer.getName());
    layoutCtr.addDisposableChildController(cpCtr); // cascade disposing requests
    return layoutCtr;
  }
View Full Code Here

  public void event(UserRequest ureq, Component source, Event event) {

    if (source == previewLink){
      removeAsListenerAndDispose(previewLayoutCtr);
      SinglePageController previewController = new SinglePageController(ureq, getWindowControl(), iframeEnabled, rootContainer, chosenFile, null, allowRelativeLinks.booleanValue(), showHomeLink);
      previewLayoutCtr = new LayoutMain3ColsPreviewController(ureq, getWindowControl(), null, null, previewController.getInitialComponent(), null);
      previewLayoutCtr.addDisposableChildController(previewController);
      previewLayoutCtr.activate();
      listenTo(previewLayoutCtr);
    }
    // edit chosen file
View Full Code Here

      } else {         
        tunnelRunCtr = new TURunController(getWindowControl(), config, ureq, courseNode, PreviewConfigHelper.getPreviewCourseEnvironment(true, true, course));
      }
      if (previewLayoutCtr != null) previewLayoutCtr.dispose();
      // preview layout: only center column (col3) used
      previewLayoutCtr = new LayoutMain3ColsPreviewController(ureq, getWindowControl(), null, null, tunnelRunCtr.getInitialComponent(), null);
      previewLayoutCtr.addDisposableChildController(tunnelRunCtr); // cascade dispose
      previewLayoutCtr.activate();
    } else if (source == tuConfigForm) {
      if (event == Form.EVNT_FORM_CANCELLED) {
        // do nothing
View Full Code Here

    } else if (source == previewLink){
      // handle preview
      if (previewLayoutCtr != null) previewLayoutCtr.dispose();
      Controller previewController = IQManager.getInstance().createIQDisplayController(moduleConfiguration, new IQPreviewSecurityCallback(), ureq, getWindowControl(), course
          .getResourceableId().longValue(), courseNode.getIdent());
      previewLayoutCtr = new LayoutMain3ColsPreviewController(ureq, getWindowControl(), null, null, previewController.getInitialComponent(), null);
      previewLayoutCtr.addDisposableChildController(previewController);
      previewLayoutCtr.activate();
     
    } else if (source == chooseTestButton){// initiate search controller
      if (type.equals(AssessmentInstance.QMD_ENTRY_TYPE_SURVEY)) {
View Full Code Here

TOP

Related Classes of org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController

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.