Examples of GlossaryMainController


Examples of org.olat.core.commons.modules.glossary.GlossaryMainController

      if (repoEntry == null) {
        // seems to be removed
        return null;
      }
      VFSContainer glossaryFolder = GlossaryManager.getInstance().getGlossaryRootFolder(repoEntry.getOlatResource());
      return new GlossaryMainController(lwControl, lureq, glossaryFolder, repoEntry.getOlatResource(), allowGlossaryEditing);
    }
    return null;
  }
View Full Code Here

Examples of org.olat.core.commons.modules.glossary.GlossaryMainController

   * @param wControl
   * @return Controller
   */
  public MainLayoutController getLaunchController(OLATResourceable res, String initialViewIdentifier, UserRequest ureq, WindowControl wControl) {
    VFSContainer glossaryFolder = GlossaryManager.getInstance().getGlossaryRootFolder(res);
    GlossaryMainController gctr = new GlossaryMainController(wControl, ureq, glossaryFolder, res, false);
    // use on column layout
    LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(ureq, wControl, null, null, gctr.getInitialComponent(), null);
    layoutCtr.addDisposableChildController(gctr); // dispose content on layout dispose
    return layoutCtr;
  }
View Full Code Here

Examples of org.olat.core.commons.modules.glossary.GlossaryMainController

   * @see org.olat.repository.handlers.RepositoryHandler#getEditorController(org.olat.core.id.OLATResourceable
   *      org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
   */
  public Controller getEditorController(OLATResourceable res, UserRequest ureq, WindowControl wControl) {
    VFSContainer glossaryFolder = GlossaryManager.getInstance().getGlossaryRootFolder(res);
    GlossaryMainController gctr = new GlossaryMainController(wControl, ureq, glossaryFolder, res, true);
    // use on column layout
    LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(ureq, wControl, null, null, gctr.getInitialComponent(), null);
    layoutCtr.addDisposableChildController(gctr); // dispose content on layout dispose
    return layoutCtr;
  }
View Full Code Here

Examples of org.olat.core.commons.modules.glossary.GlossaryMainController

      if (dt != null) {
        dts.activate(ureq, dt, ((Boolean)allowGlossaryEditing).toString());
      } else {
        ControllerCreator ctrlCreator = new ControllerCreator() {
          public Controller createController(UserRequest lureq, WindowControl lwControl) {
            GlossaryMainController glossaryController = CourseGlossaryFactory.createCourseGlossaryMainRunController(lwControl, lureq, cc,
                allowGlossaryEditing);
            if (glossaryController == null) {
              // happens in the unlikely event of a user who is in a course and
              // now
              // 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
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.