Package org.olat.modules.scorm

Examples of org.olat.modules.scorm.ScormAPIandDisplayController


        File cpRoot = FileResourceManager.getInstance().unzipFileResource(re.getOlatResource());
        boolean showMenu = config.getBooleanSafe(CONFIG_SHOWMENU, true);
       
        if (previewLayoutCtr != null) previewLayoutCtr.dispose();
        ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapScormRepositoryEntry(re));
        ScormAPIandDisplayController previewController = ScormMainManager.getInstance().createScormAPIandDisplayController(ureq, getWindowControl(), showMenu, null, cpRoot, null, course.getResourceableId().toString(),
            ScormConstants.SCORM_MODE_BROWSE, ScormConstants.SCORM_MODE_NOCREDIT, true, true);       
        // configure some display options
        boolean showNavButtons = config.getBooleanSafe(ScormEditController.CONFIG_SHOWNAVBUTTONS, true);
        previewController.showNavButtons(showNavButtons);
        String height = (String) config.get(ScormEditController.CONFIG_HEIGHT);
        if ( ! height.equals(ScormEditController.CONFIG_HEIGHT_AUTO)) {
          previewController.setHeightPX(Integer.parseInt(height));
        }

      }
    }
  }
View Full Code Here

TOP

Related Classes of org.olat.modules.scorm.ScormAPIandDisplayController

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.