Package com.lastcalc.servlets.WorksheetServlet

Examples of com.lastcalc.servlets.WorksheetServlet.AnswerType


      // answer so that variables are lighlighted in the line they are
      // created in
      final String questionAsHtml = Renderers.toHtml("/", tokenizedQuestion, sp.getUserDefinedKeywordMap())
          .toString();
      final TokenList strippedAnswer = sp.stripUDF(answer);
      final AnswerType answerType = WorksheetServlet.getAnswerType(strippedAnswer);
      line.appendElement("div").addClass("helpquestion").html(questionAsHtml);
      if (answerType.equals(AnswerType.NORMAL)) {
        line.appendElement("div").attr("class", "equals").text("=");
        line.appendElement("div").attr("class", "answer")
        .html(Renderers.toHtml("/", strippedAnswer).toString());
      } else {
        line.appendElement("div").attr("class", "equals")
View Full Code Here


         
          final Element question = lineEl.appendElement("div").attr("class", "question")
              .attr("contentEditable", "true");
          question.text(qa.question);
          final TokenList strippedAnswer = sp.stripUDF(qa.answer);
          final AnswerType aType = WorksheetServlet.getAnswerType(strippedAnswer);
          if (aType.equals(AnswerType.NORMAL)) {
            lineEl.appendElement("div").attr("class", "equals").text("=");
            lineEl.appendElement("div").attr("class", "answer")
            .html(Renderers.toHtml("/", strippedAnswer).toString());
          } else {
            lineEl.appendElement("div").attr("class", "equals")
View Full Code Here

TOP

Related Classes of com.lastcalc.servlets.WorksheetServlet.AnswerType

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.