Package org.olat.course.nodes

Examples of org.olat.course.nodes.CourseNodeFactory


      toolC.addLink(CMD_COURSEPREVIEW, translate(NLS_COMMAND_COURSEPREVIEW), CMD_COURSEPREVIEW, "b_toolbox_preview" );
      toolC.addLink(CMD_PUBLISH, translate(NLS_COMMAND_PUBLISH), CMD_PUBLISH,"b_toolbox_publish" );
      toolC.addLink(CMD_CLOSEEDITOR, translate(NLS_COMMAND_CLOSEEDITOR), null, "b_toolbox_close");

      toolC.addHeader(translate(NLS_HEADER_INSERTNODES));
      CourseNodeFactory cnf = CourseNodeFactory.getInstance();
      for (Iterator<String> iter = cnf.getRegisteredCourseNodeAliases().iterator(); iter.hasNext();) {
        String courseNodeAlias = iter.next();
        CourseNodeConfiguration cnConfig = cnf.getCourseNodeConfiguration(courseNodeAlias);
        toolC.addLink(TB_ACTION + courseNodeAlias, cnConfig.getLinkText(ureq.getLocale()), courseNodeAlias, cnConfig.getIconCSSClass());
      }

      toolC.addHeader(translate(NLS_COMMAND_DELETENODE_HEADER));
      toolC.addLink(CMD_DELNODE, translate(NLS_COMMAND_DELETENODE), CMD_DELNODE, "b_toolbox_delete");
View Full Code Here


      nodeLink.setUserObject(child.getIdent());
    }
    // Add course node to get title etc
    genericPeekViewVC.contextPut("childNodes", childNodes);
    // Add css class for course node type
    CourseNodeFactory courseNodeFactory = CourseNodeFactory.getInstance();
    genericPeekViewVC.contextPut("courseNodeFactory", courseNodeFactory);
    //
    putInitialPanel(genericPeekViewVC);
  }
View Full Code Here

TOP

Related Classes of org.olat.course.nodes.CourseNodeFactory

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.