Package org.olat.core.commons.fullWebApp

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


      controller = WikiManager.getInstance().createWikiMainControllerDisposeOnOres(ureq, wControl, res, callback, page);
    } else {
      controller = WikiManager.getInstance().createWikiMainControllerDisposeOnOres(ureq, wControl, res, callback, null);
    }
    // use on column layout
    LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(ureq, wControl, null, null, controller.getInitialComponent(), null);
    layoutCtr.addDisposableChildController(controller); // dispose content on layout dispose
    return layoutCtr;
  }
View Full Code Here


    GenericTreeModel tm = buildTreeModel(firstLastName);
    menuTree.setTreeModel(tm);
    menuTree.setSelectedNodeId(tm.getRootNode().getChildAt(0).getIdent());
    menuTree.addListener(this);

    LayoutMain3ColsController columnLayoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), menuTree, null, main, "userinfomain");
    listenTo(columnLayoutCtr);
    //
    putInitialPanel(columnLayoutCtr.getInitialComponent());
   
    // Activate child controllers if a usable context entry is found
    BusinessControl bc = getWindowControl().getBusinessControl();
    ContextEntry ce = bc.popLauncherContextEntry();
    if (ce != null) { // a context path is left for me
View Full Code Here

    Resolver resolver = new ImsRepositoryResolver(res);
    IQSecurityCallback secCallback = new IQPreviewSecurityCallback();
    Controller runController =
      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

  public Controller getLaunchController(OLATResourceable res, UserRequest ureq, WindowControl wControl) {
    Resolver resolver = new ImsRepositoryResolver(res);
    IQSecurityCallback secCallback = new IQPreviewSecurityCallback();
    Controller runController = IQManager.getInstance().createIQDisplayController(res, resolver, AssessmentInstance.QMD_ENTRY_TYPE_SURVEY, 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

        return BaseFullWebappPopupLayoutFactory.createAuthMinimalPopupLayout(ureq, new ControllerCreator() {
          @SuppressWarnings("synthetic-access")
          public Controller createController(UserRequest lureq, WindowControl lwControl) {
            // wrapp in column layout, popup window needs a layout controller
            Controller ctr = contentControllerCreator.createController(lureq, lwControl);
            LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(lureq, lwControl, null, null, ctr.getInitialComponent(),
                null);
            layoutCtr.setCustomCSS(CourseFactory.getCustomCourseCss(lureq.getUserSession(), courseEnv));
            layoutCtr.addDisposableChildController(ctr);
            return layoutCtr;
          }
        });
      }
    };
View Full Code Here

        displayController = (IQDisplayController)returnController;
        listenTo(displayController);
        if (displayController.isReady()) {
          // in case displayController was unable to initialize, a message was set by displayController
          // this is the case if no more attempts or security check was unsuccessfull
          LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), null, null, displayController.getInitialComponent(), null);
          listenTo(layoutCtr); // autodispose
 
          //need to wrap a course restart controller again, because IQDisplay
          //runs on top of GUIStack
          ICourse course = CourseFactory.loadCourse(callingResId);
          RepositoryEntry courseRepositoryEntry = RepositoryManager.getInstance().lookupRepositoryEntry(course, true);
          Panel empty = new Panel("empty");//empty panel set as "menu" and "tool"
          Controller courseCloser = CourseFactory.createDisposedCourseRestartController(ureq, getWindowControl(), courseRepositoryEntry.getResourceableId());
          Controller disposedRestartController = new LayoutMain3ColsController(ureq, getWindowControl(), empty, empty, courseCloser.getInitialComponent(), "disposed course whily in iqRun" + callingResId);
          layoutCtr.setDisposedMessageController(disposedRestartController);
         
          getWindowControl().pushToMainArea(layoutCtr.getInitialComponent());
          if (modConfig.get(IQEditController.CONFIG_KEY_TYPE).equals(AssessmentInstance.QMD_ENTRY_TYPE_ASSESS)) {
            assessmentStopped = false;                     
View Full Code Here

              // tries to access the glossary
              String text = translate("error.noglossary");
              return MessageUIFactory.createInfoMessage(lureq, lwControl, null, text);
            } else {
              // use a one-column main layout
              LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(lureq, lwControl, null, null, glossaryController
                  .getInitialComponent(), null);
            // dispose glossary on layout dispose
              layoutCtr.addDisposableChildController(glossaryController);
              return layoutCtr;
            }
          }
        };
 
View Full Code Here

        myContent.contextPut("email", tempKey.getEmailAddress());
        rf2 = new RegistrationForm2("regform2", getTranslator(), I18nManager.getInstance().getLocaleKey(getLocale()));
        rf2.addListener(this);
        regarea.setContent(rf2);
        // load view in layout
        LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), null, null, myContent, null);
        listenTo(layoutCtr);
        putInitialPanel(layoutCtr.getInitialComponent());
      }
    }   
  }
View Full Code Here

      entry = rm.lookupRepositoryEntryBySoftkey(helpCourseSoftKey, false);
    }
    if (entry == null) {
      wControl.setError("error.helpcourse.not.configured");
      // create empty main controller
      LayoutMain3ColsController emptyCtr = new LayoutMain3ColsController(ureq, wControl, null, null, null, null);
      return emptyCtr;
    } else {
      // Increment launch counter
      rm.incrementLaunchCounter(entry);
      OLATResource ores = entry.getOlatResource();
View Full Code Here

      //test not editable
      VelocityContainer notEditable = createVelocityContainer("notEditable");
      notEditableButton = LinkFactory.createButton("ok", notEditable, this);
      Panel panel = new Panel("notEditable");
      panel.setContent(notEditable);
      columnLayoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), null, null, panel, null);
      wrapperPanel = putInitialPanel(columnLayoutCtr.getInitialComponent());
      return;
    }
       
    mainToolC = populateToolC(); // qtiPackage must be loaded previousely
    listenTo(mainToolC);
   
    // initialize the history
    if (qtiPackage.isResumed() && qtiPackage.hasSerializedChangelog()) {
      // there were already changes made -> reload!
      history = qtiPackage.loadChangelog();
    } else {
      // start with a fresh history. Editor is resumed but no changes were made
      // so far.
      history = new HashMap();
    }

    if (restrictedEdit) {
      mainToolC.setEnabled(CMD_TOOLS_ADD_SECTION, false);
      mainToolC.setEnabled(CMD_TOOLS_ADD_SINGLECHOICE, false);
      mainToolC.setEnabled(CMD_TOOLS_ADD_MULTIPLECHOICE, false);

      mainToolC.setEnabled(CMD_TOOLS_ADD_FIB, false);
      if (!qtiPackage.getQTIDocument().isSurvey()) mainToolC.setEnabled(CMD_TOOLS_ADD_KPRIM, false);
      if (qtiPackage.getQTIDocument().isSurvey()) mainToolC.setEnabled(CMD_TOOLS_ADD_FREETEXT, false);
    }
    mainToolC.setEnabled(CMD_TOOLS_CHANGE_DELETE, false);
    mainToolC.setEnabled(CMD_TOOLS_CHANGE_MOVE, false);
    mainToolC.setEnabled(CMD_TOOLS_CHANGE_COPY, false);

    // The menu tree model represents the structure of the qti document.
    // All insert/move operations on the model are propagated to the structure
    // by the node
    menuTreeModel = new QTIEditorTreeModel(qtiPackage);
    menuTree = new MenuTree("QTIDocumentTree");
    menuTree.setTreeModel(menuTreeModel);
    menuTree.setSelectedNodeId(menuTree.getTreeModel().getRootNode().getIdent());
    menuTree.addListener(this);// listen to the tree
    // remember the qtidoc title when we started this editor, to correctly name
    // the history report
    this.startedWithTitle = menuTree.getSelectedNode().getAltText();
    //
    main.put("tabbedPane", menuTreeModel.getQtiRootNode().createEditTabbedPane(ureq, getWindowControl(), getTranslator(), this));
    main.contextPut("qtititle", menuTreeModel.getQtiRootNode().getAltText());
    main.contextPut("isRestrictedEdit", restrictedEdit ? Boolean.TRUE : Boolean.FALSE);
    //
    columnLayoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), menuTree, mainToolC.getInitialComponent(), mainPanel, "qtieditor" + qtiPackage.getRepresentingResourceable());
    listenTo(columnLayoutCtr);
    // Add css background
    if (restrictedEdit) {
      columnLayoutCtr.addCssClassToMain("o_editor_qti_correct");
    } else {
View Full Code Here

TOP

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

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.