Package org.cast.isi.panel

Examples of org.cast.isi.panel.ResponseList


      ResponseButtons responseButtons = new ResponseButtons("responseButtons", mPrompt, questionsMetadata, loc);
      responseButtons.setVisible(!isTeacher);
      add(responseButtons);

      ResponseList responseList = new ResponseList("responseList", mPrompt, questionsMetadata, loc, mUser);
      String context = "questions" + (isTeacher ? ".teacher" : ""  );
      responseList.setContext(context);
      responseList.setAllowEdit(!isTeacher);
      responseList.setAllowNotebook(false);
      responseList.setAllowWhiteboard(false);
      add(responseList);

    } else {
      questionTitleContainer.setVisible(false);
      add(new WebMarkupContainer("responseButtons").setVisible(false));
View Full Code Here


    setPageNotesMetadata();
    mNotesPrompt = responseService.getOrCreatePrompt(PromptType.PAGE_NOTES, loc);
    StateSavingCollapseBoxBorder noteBox = new StateSavingCollapseBoxBorder("noteBox", "noteToggle", null, getPageName());
    add(noteBox);
    noteBox.setVisible(showXmlContent);
    ResponseList responseList = new ResponseList ("responseList", mNotesPrompt, pageNotesMetadata, loc, mTargetUser);
    responseList.setContext("pagenote.teacher");
    responseList.setAllowNotebook(false);
    responseList.setAllowEdit(false);
    responseList.setAllowWhiteboard(ISIApplication.get().isWhiteboardOn());
    noteBox.add(responseList);
    WebMarkupContainer responseButtons = new WebMarkupContainer("responseButtons");
    noteBox.add(responseButtons);
    responseButtons.setVisible(false);
    noteBox.setVisible(ISIApplication.get().isPageNotesOn());
View Full Code Here

//    if (param.containsKey("loc") && param.get("loc") != null) {
//      location = new ContentLoc(param.getString("loc"));
//    }
   
    IModel<Prompt> mPrompt = responseService.getOrCreatePrompt(PromptType.TEACHER_NOTES, mStudent);
    ResponseList responseList = new ResponseList("nbResponseList", mPrompt, notebookMetadata, null, ISISession.get().getUserModel());
    add(responseList);
    responseList.setContext("TeacherNotes");
    responseList.setAllowNotebook(false);
    responseList.setAllowWhiteboard(false);
    ResponseButtons responseButtons = new ResponseButtons("responseButtons", mPrompt, notebookMetadata, null);
    responseButtons.setContext("TeacherNotes");
    add(responseButtons);
    add(ISIApplication.get().getToolbar("tht", this));
  }
View Full Code Here

    } else if (wicketId.startsWith("responseList_")) {
      ContentLoc loc = new ContentLoc(getModel().getObject());
      String responseGroupId = elt.getAttribute("rgid");
      ResponseMetadata metadata = getResponseMetadata(responseGroupId);
      IModel<Prompt> mPrompt = responseService.getOrCreatePrompt(PromptType.RESPONSEAREA, loc, responseGroupId, metadata.getCollection());
      ResponseList dataView = new ResponseList (wicketId, mPrompt, metadata, loc, ISISession.get().getTargetUserModel());
      dataView.setContext(getResponseListContext(false));
      dataView.setAllowEdit(!isTeacher);
      dataView.setAllowNotebook(!inGlossary && !isTeacher && ISIApplication.get().isNotebookOn());
      dataView.setAllowWhiteboard(!inGlossary && ISIApplication.get().isWhiteboardOn());
      dataView.add(new AttributeRemover("rgid", "group"));
      return dataView;

    } else if (wicketId.startsWith("locking_responseList_")) {
      ContentLoc loc = new ContentLoc(getModel().getObject());
      String responseGroupId = elt.getAttribute("rgid");
      ResponseMetadata metadata = getResponseMetadata(responseGroupId);
      IModel<Prompt> mPrompt = responseService.getOrCreatePrompt(PromptType.RESPONSEAREA, loc, responseGroupId, metadata.getCollection());
      ResponseList dataView = new LockingResponseList (wicketId, mPrompt, metadata, loc, ISISession.get().getTargetUserModel());
      dataView.setContext(getResponseListContext(false));
      dataView.setAllowNotebook(!inGlossary && !isTeacher && ISIApplication.get().isNotebookOn());
      dataView.setAllowWhiteboard(!inGlossary && ISIApplication.get().isWhiteboardOn());
      dataView.add(new AttributeRemover("rgid", "group"));
      return dataView;

    } else if (wicketId.startsWith("period_responseList_")) {
      ContentLoc loc = new ContentLoc(getModel().getObject());
      String responseGroupId = elt.getAttribute("rgid");
      ResponseMetadata metadata = getResponseMetadata(responseGroupId);
      IModel<Prompt> mPrompt = responseService.getOrCreatePrompt(PromptType.RESPONSEAREA, loc, responseGroupId, metadata.getCollection());
      PeriodResponseList dataView = new PeriodResponseList(wicketId, mPrompt, metadata, loc, ISISession.get().getCurrentPeriodModel());
      dataView.setContext(getResponseListContext(true));
      dataView.setAllowEdit(!isTeacher);
      dataView.setAllowNotebook(!inGlossary && !isTeacher && ISIApplication.get().isNotebookOn());
      dataView.setAllowWhiteboard(!inGlossary && ISIApplication.get().isWhiteboardOn());
      dataView.add(new AttributeRemover("rgid", "group"));
      return dataView;     
     
    } else if (wicketId.startsWith("responseButtons_")) {
      ContentLoc loc = new ContentLoc(getModel().getObject());
      String responseGroupId = elt.getAttribute("rgid");
View Full Code Here

  protected void addNotesPanel () {
    setPageNotesMetadata();
    mNotesPrompt = responseService.getOrCreatePrompt(PromptType.PAGE_NOTES, loc);
    StateSavingCollapseBoxBorder noteBox = new StateSavingCollapseBoxBorder("noteBox", "noteToggle", null, getPageName());
    add(noteBox);
    ResponseList responseList = new ResponseList ("responseList", mNotesPrompt, pageNotesMetadata, loc, mTargetUser);
    responseList.setContext("pagenote");
    responseList.setAllowNotebook(ISIApplication.get().isNotebookOn());
    responseList.setAllowWhiteboard(ISIApplication.get().isWhiteboardOn());
    noteBox.add(responseList);
    ResponseButtons responseButtons = new ResponseButtons("responseButtons", mNotesPrompt, pageNotesMetadata, loc);
    responseButtons.setContext("pagenote");
    noteBox.add(responseButtons);
    noteBox.setVisible(ISIApplication.get().isPageNotesOn());
View Full Code Here

   * Add a response list to the notebook.  These are notes NOT associated with reading pages.
   * These responses are associated with the Chapter (level1).
   */
  protected void addNotebookResponses () {
    IModel<Prompt> mPrompt = responseService.getOrCreatePrompt(PromptType.NOTEBOOK_NOTES, currentChapterLoc);
    ResponseList responseList = new ResponseList("nbResponseList", mPrompt, notebookMetadata, currentChapterLoc, ISISession.get().getTargetUserModel());
    String context = "notebook" + (isTeacher ? ".teacher" : ""  );
    responseList.setContext(context);
    responseList.setAllowEdit(!isTeacher);
    responseList.setAllowNotebook(false);
    responseList.setAllowWhiteboard(false);
    add(responseList);
    ResponseButtons responseButtons = new ResponseButtons("responseButtons", mPrompt, notebookMetadata, currentLoc);
    responseButtons.setContext("notebook");
    responseButtons.setVisible(!isTeacher);
    add(responseButtons);
View Full Code Here

    add(ISIApplication.get().getToolbar("tht", this));
  }

  protected void addResponses(Question question) {
    PromptModel mPrompt = new PromptModel(question.getPrompt());
    ResponseList responseList = new ResponseList("responses", mPrompt, questionsMetadata, null, ISISession.get().getTargetUserModel());
    add(responseList);
    String context = "questions" + (isTeacher ? ".teacher" : ""  );
    responseList.setContext(context);
    responseList.setAllowNotebook(false);
    responseList.setAllowWhiteboard(false);
    responseList.setAllowEdit(!isTeacher);
   
    ResponseButtons responseButtons = new ResponseButtons("responseButtons", mPrompt, questionsMetadata, null);
    responseButtons.setContext("questions");
    add(responseButtons);
    responseButtons.setVisible(!isTeacher);
View Full Code Here

TOP

Related Classes of org.cast.isi.panel.ResponseList

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.