Search in sources :

Example 1 with EPTOCReadOnlyController

use of org.olat.portfolio.ui.structel.view.EPTOCReadOnlyController in project OpenOLAT by OpenOLAT.

the class EPMultiplePageController method setAndInitTOCPage.

/**
 * @param ureq
 */
private void setAndInitTOCPage(UserRequest ureq) {
    // this is the toc
    if (tocPageCtrl == null) {
        PageTab page = pageList.get(0);
        PortfolioStructure map = ePFMgr.loadStructureParent(page);
        tocPageCtrl = new EPTOCReadOnlyController(ureq, getWindowControl(), map, secCallback);
        listenTo(tocPageCtrl);
    } else {
        tocPageCtrl.refreshTOC(ureq);
    }
    disableLINK_LC(false);
    disableLink_TOC(true);
    currentActivePageCtrl = tocPageCtrl;
    addToHistory(ureq, OresHelper.createOLATResourceableType("TOC"), null);
}
Also used : PortfolioStructure(org.olat.portfolio.model.structel.PortfolioStructure) EPTOCReadOnlyController(org.olat.portfolio.ui.structel.view.EPTOCReadOnlyController)

Example 2 with EPTOCReadOnlyController

use of org.olat.portfolio.ui.structel.view.EPTOCReadOnlyController in project openolat by klemens.

the class EPMultiplePageController method setAndInitTOCPage.

/**
 * @param ureq
 */
private void setAndInitTOCPage(UserRequest ureq) {
    // this is the toc
    if (tocPageCtrl == null) {
        PageTab page = pageList.get(0);
        PortfolioStructure map = ePFMgr.loadStructureParent(page);
        tocPageCtrl = new EPTOCReadOnlyController(ureq, getWindowControl(), map, secCallback);
        listenTo(tocPageCtrl);
    } else {
        tocPageCtrl.refreshTOC(ureq);
    }
    disableLINK_LC(false);
    disableLink_TOC(true);
    currentActivePageCtrl = tocPageCtrl;
    addToHistory(ureq, OresHelper.createOLATResourceableType("TOC"), null);
}
Also used : PortfolioStructure(org.olat.portfolio.model.structel.PortfolioStructure) EPTOCReadOnlyController(org.olat.portfolio.ui.structel.view.EPTOCReadOnlyController)

Aggregations

PortfolioStructure (org.olat.portfolio.model.structel.PortfolioStructure)2 EPTOCReadOnlyController (org.olat.portfolio.ui.structel.view.EPTOCReadOnlyController)2