Package org.cast.isi.data

Examples of org.cast.isi.data.PromptType


  public Component makeResponseViewComponent(
      String wicketId, IModel<ISIResponse> model) {
    ISIResponse response = model.getObject();
    ISIPrompt prompt = (ISIPrompt) response.getPrompt();
    PromptType type = prompt.getType();
    if (type == PromptType.SINGLE_SELECT) {
      return makeXmlComponentViewer(wicketId, prompt);
    }
    else {
      return makeResponseViewer(wicketId, model);
View Full Code Here


    xml.setOutputMarkupId(true);
    return xml;
  }

  public Component makeQuestionTextComponent(String wicketId, ISIPrompt prompt) {
    PromptType type = prompt.getType();
    if ((type == PromptType.SINGLE_SELECT) || (type == PromptType.RESPONSEAREA))
      return makeXmlQuestionTextComponent(wicketId, prompt);
    else if (type == PromptType.PAGE_NOTES)
      return new Label(wicketId, "<em>Page Notes</em>").setEscapeModelStrings(false);
    else
View Full Code Here

    List<Response> responses = getResponses();
    if (responses.isEmpty())
      return null;
    Response response = responses.get(0);
    ISIPrompt prompt = (ISIPrompt) response.getPrompt();
    PromptType type = prompt.getType();
    if (type.equals(PromptType.SINGLE_SELECT))
      return response.getResponseData().getScore();
    else
      return response.getScore();
  }
View Full Code Here

TOP

Related Classes of org.cast.isi.data.PromptType

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.