Package org.olat.core.gui.components.tree

Examples of org.olat.core.gui.components.tree.MenuTree


   * to initialize MainController and set Panel
   *
   * @param ureq
   */
  public void init(UserRequest ureq) {
    olatMenuTree = new MenuTree("olatMenuTree");
    TreeModel tm = buildTreeModel();
    olatMenuTree.setTreeModel(tm);
    content = new Panel("content");
    // no child -> show a blank page
    if (tm.getRootNode().getChildCount() > 0) {
View Full Code Here


    File mani = new File(cpRoot, "imsmanifest.xml");
    if (!mani.exists()) { throw new OLATRuntimeException("error.manifest.missing", null, PACKAGE, "CP " + cpRoot.getAbsolutePath()
        + " has no imsmanifest", null); }
    treeModel = new ScormCPManifestTreeModel(mani, scormAdapter.getScoItemsStatus());

    menuTree = new MenuTree("cpDisplayTree");
    menuTree.setTreeModel(treeModel);
    menuTree.addListener(this);
   
    OLATResourceable courseOres = null;
    // load course where this scorm package runs in
View Full Code Here

   * @param cenv
   */
  public PreviewRunController(UserRequest ureq, WindowControl wControl, IdentityEnvironment identEnv, CourseEnvironment cenv, String role, LayoutMain3ColsPreviewController previewLayoutCtr) {
    super(ureq, wControl);
    // set up the components
    luTree = new MenuTree("luTreeRun", this);

    // build up the running structure for this user;
    uce = new UserCourseEnvironmentImpl(identEnv, cenv);
    navHandler = new NavigationHandler(uce, true);
   
View Full Code Here

   * @param wControl The window control
   */
  public GuestHomeMainController(UserRequest ureq, WindowControl wControl) {
    super(ureq, wControl);

    olatMenuTree = new MenuTree("olatMenuTree");
    TreeModel tm = buildTreeModel();
    olatMenuTree.setTreeModel(tm);
    olatMenuTree.setSelectedNodeId(tm.getRootNode().getIdent());
    olatMenuTree.addListener(this);

View Full Code Here

  public HomeMainController(UserRequest ureq, WindowControl wControl) {
    super(ureq, updateBusinessPath(ureq,wControl));
   
    addLoggingResourceable(LoggingResourceable.wrap(ureq.getIdentity()));
   
    olatMenuTree = new MenuTree("olatMenuTree");
    TreeModel tm = buildTreeModel();
    olatMenuTree.setTreeModel(tm);
    olatMenuTree.setSelectedNodeId(tm.getRootNode().getIdent());
    olatMenuTree.addListener(this);
    // Activate correct position in menu
View Full Code Here

    // initialize tree model in any case
    ctm = new CPManifestTreeModel((VFSLeaf) mani);

    if (showMenu) {
      // the menu is only initialized when needed.
      cpTree = new MenuTree("cpDisplayTree");
      cpTree.setTreeModel(ctm);
      cpTree.addListener(this);
    }

    LoggingResourceable nodeInfo = null;
View Full Code Here

    // to the courselog
    Tracing.logAudit("Entering course: [[["+courseTitle+"]]]", course.getResourceableId().toString(), RunMainController.class);
   
    // set up the components
    all = new Panel("allofcourse");
    luTree = new MenuTree("luTreeRun", this);
    contentP = new Panel("building_block_content");

    // get all group memberships for this course
    initGroupMemberships(identity);
    // Initialize the the users roles and right for this course
View Full Code Here

      keepOpenWarningButton = LinkFactory.createCustomLink("keepOpenWarningButton", CMD_KEEPOPEN_WARNING, "keep.open", Link.BUTTON_SMALL, main, this);
     
      // set the custom course css
      enableCustomCss(ureq);

      menuTree = new MenuTree("luTree");
           

      /*
       * create editor user course environment for enhanced syntax/semantic
       * checks. Initialize it with the current course node id, which is not set
View Full Code Here

    // Intro page, static
    intro = createVelocityContainer("archiver_index");
    main.setContent(intro);

    // Navigation menu
    menuTree = new MenuTree("menuTree");       
    TreeModel tm = buildTreeModel();
    menuTree.setTreeModel(tm);
    menuTree.setSelectedNodeId(tm.getRootNode().getIdent());
    menuTree.addListener(this);
View Full Code Here

    dmzPanel = new Panel("content");
    content = initLoginContent(ureq, null);
    dmzPanel.pushContent(content);

    // DMZ navigation
    olatMenuTree = new MenuTree("olatMenuTree");       
    TreeModel tm = buildTreeModel();
    olatMenuTree.setTreeModel(tm);
    olatMenuTree.setSelectedNodeId(tm.getRootNode().getIdent());
    olatMenuTree.addListener(this);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.tree.MenuTree

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.