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

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


          Element el_solution = (Element) el_resolved.selectSingleNode(".//solution");
          if (el_solution != null) output.setSolution(new Solution(el_solution));
        } else if (feedbacktype.equals("Hint")) {
          //<!ENTITY % I_FeedbackStyle " feedbackstyle  (Complete | Incremental | Multilevel | Proprietary )  'Complete'">
          Element el_hint = (Element) el_resolved.selectSingleNode(".//hint");
          output.setHint(new Hint(el_hint));
        }
      }
    }
    return fulfilled;
View Full Code Here


    if (info.containsMessage()) {
      switch (message) {
        case QTIConstants.MESSAGE_ITEM_SUBMITTED :         
          //item hints?
          if (info.isHint()) {
            Hint el_hint = info.getCurrentOutput().getHint();
            if (el_hint.getFeedbackstyle() == Hint.FEEDBACKSTYLE_INCREMENTAL) {
              // increase the hint level so we know which hint to display
              ItemContext itc = act.getCurrentSectionContext().getCurrentItemContext();
              int nLevel = itc.getHintLevel() + 1;
              int numofhints = el_hint.getChildCount();
              if (nLevel > numofhints) nLevel = numofhints;
              itc.setHintLevel(nLevel);
              //<!ELEMENT hint (qticomment? , hintmaterial+)>
             
              displayFeedback(sb, (GenericQTIElement)el_hint.getChildAt(nLevel-1), ai, translator.getLocale());
            } else {
              displayFeedback(sb, el_hint, ai, translator.getLocale());
            }
          }
          //item solution?
View Full Code Here

TOP

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

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.