Examples of renderAsHtmlForEditor()


Examples of org.olat.ims.qti.editor.beecom.objects.Material.renderAsHtmlForEditor()

          continue;
        }
        //question       
        Material material = item.getQuestion().getQuestion();
        if(material!=null) {
          String htmlContent = material.renderAsHtmlForEditor();
          //parse filenames
          returnSet.addAll(getMediaFileNames(htmlContent));
        }     
        //responses
        List responseList = item.getQuestion().getResponses();
View Full Code Here

Examples of org.olat.ims.qti.editor.beecom.objects.Material.renderAsHtmlForEditor()

        while(responseIterator.hasNext()) {
          Response response = (Response)responseIterator.next();
          Material responseMat = response.getContent();
          //parse filenames
          if(responseMat!=null) {
            returnSet.addAll(getMediaFileNames(responseMat.renderAsHtmlForEditor()));
          }
          // response-level feedback
          Material responseFeedbackMat = QTIEditHelper.getFeedbackOlatRespMaterial(item, response.getIdent());
          if(responseFeedbackMat!=null) {
            returnSet.addAll(getMediaFileNames(responseFeedbackMat.renderAsHtmlForEditor()));
View Full Code Here

Examples of org.olat.ims.qti.editor.beecom.objects.Material.renderAsHtmlForEditor()

            returnSet.addAll(getMediaFileNames(responseMat.renderAsHtmlForEditor()));
          }
          // response-level feedback
          Material responseFeedbackMat = QTIEditHelper.getFeedbackOlatRespMaterial(item, response.getIdent());
          if(responseFeedbackMat!=null) {
            returnSet.addAll(getMediaFileNames(responseFeedbackMat.renderAsHtmlForEditor()));
          }
        } 
        //feedback
        Material masteryMat = QTIEditHelper.getFeedbackMasteryMaterial(item);
        if(masteryMat!=null) {
View Full Code Here

Examples of org.olat.ims.qti.editor.beecom.objects.Material.renderAsHtmlForEditor()

          }
        } 
        //feedback
        Material masteryMat = QTIEditHelper.getFeedbackMasteryMaterial(item);
        if(masteryMat!=null) {
          returnSet.addAll(getMediaFileNames(masteryMat.renderAsHtmlForEditor()));
        }
        Material failureMat = QTIEditHelper.getFeedbackFailMaterial(item);
        if(failureMat!=null) {
          returnSet.addAll(getMediaFileNames(failureMat.renderAsHtmlForEditor()));
        }
View Full Code Here

Examples of org.olat.ims.qti.editor.beecom.objects.Material.renderAsHtmlForEditor()

        if(masteryMat!=null) {
          returnSet.addAll(getMediaFileNames(masteryMat.renderAsHtmlForEditor()));
        }
        Material failureMat = QTIEditHelper.getFeedbackFailMaterial(item);
        if(failureMat!=null) {
          returnSet.addAll(getMediaFileNames(failureMat.renderAsHtmlForEditor()));
        }
      }
    }   
    return returnSet;
  }
View Full Code Here

Examples of org.olat.ims.qti.editor.beecom.objects.Material.renderAsHtmlForEditor()

        nce.setQuestionIdent(item.getQuestion().getQuestion().getId());
        fireEvent(ureq, nce);
      } else if (event == Event.DONE_EVENT || event == Event.CANCELLED_EVENT) {
        if (event == Event.DONE_EVENT) {
          Material mat = materialCtr.getMaterial();
          String html = mat.renderAsHtmlForEditor();
          if (mat == masteryMat) {
            QTIEditHelper.setFeedbackMastery(item, html);
          } else if (mat == failureMat) {
            QTIEditHelper.setFeedbackFail(item, html);
          } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.