Package org.olat.ims.qti.container.qtielements

Examples of org.olat.ims.qti.container.qtielements.Objectives


  private void displaySectionInfo(StringOutput sb, SectionContext sc, AssessmentInstance ai, IQComponent comp, URLBuilder ubu, Translator translator) {
    // display the sectionInfo
    if (sc == null) return;
    if (ai.isDisplayTitles())
      sb.append("<h3>" + sc.getTitle() + "</h3>");
    Objectives objectives = sc.getObjectives();
    if (objectives != null) {
      StringBuilder sbTmp = new StringBuilder();
      Resolver resolver = ai.getResolver();
      RenderInstructions ri = new RenderInstructions();
      ri.put(RenderInstructions.KEY_STATICS_PATH, resolver.getStaticsBaseURI() + "/");
      objectives.render(sbTmp, ri);
      sb.append(sbTmp);
    }
    // if Menu not visible, or if visible but not selectable, and itemPage sequence (one question per page) 
    // show button to navigate to the first question of the current section     
    IQMenuDisplayConf menuDisplayConfig = comp.getMenuDisplayConf();
View Full Code Here


      sb.append("</a>");
    }   
  }

  private void displayAssessmentInfo(StringOutput sb, AssessmentContext ac, AssessmentInstance ai, IQComponent comp, URLBuilder ubu, Translator translator) {
    Objectives objectives = ac.getObjectives();
    if (objectives != null) {
      StringBuilder sbTmp = new StringBuilder();
      Resolver resolver = ai.getResolver();
      RenderInstructions ri = new RenderInstructions();
      ri.put(RenderInstructions.KEY_STATICS_PATH, resolver.getStaticsBaseURI() + "/");
      objectives.render(sbTmp, ri);
      sb.append(sbTmp);
    }
    //if Menu not visible, or if visible but not selectable show button to navigate to the first section panel     
    IQMenuDisplayConf menuDisplayConfig = comp.getMenuDisplayConf();
    if (!menuDisplayConfig.isEnabledMenu()) {
View Full Code Here

      if (durationLimit == 0) durationLimit = -1; // Assesst Designer fix
    }

    // get objectives
    Element el_objectives = (Element)el_assessment.selectSingleNode("objectives");
    if (el_objectives != null) objectives = new Objectives(el_objectives);
   
    // set feedback, hint, and solutions switches
    //<!ENTITY % I_FeedbackSwitch " feedbackswitch (Yes | No ) 'Yes'">
    //<!ENTITY % I_HintSwitch " hintswitch (Yes | No ) 'Yes'">
    //<!ENTITY % I_SolutionSwitch " solutionswitch (Yes | No ) 'Yes'">
View Full Code Here

      if (durationLimit == 0) durationLimit = -1; // Assesst Designer fix
    }

    // get objectives
    Element el_objectives = (Element)el_section.selectSingleNode("objectives");
    if (el_objectives != null) objectives = new Objectives(el_objectives);
   
    // feedback switches
    // ---------------------------------------------------------
    if (sw == null) { // no switches from the assessment context dominate
      // retrieve section switches
View Full Code Here

TOP

Related Classes of org.olat.ims.qti.container.qtielements.Objectives

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.