Package org.cast.isi.component

Examples of org.cast.isi.component.StateSavingCollapseBoxBorder


  // Differs from superclass version in that it creates a READ-ONLY page notes area with no edit buttons
  // view the student's notes
  protected void addNotesPanel () {
    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


 
  @SuppressWarnings("static-access")
  @Override
  protected void addQuestionsPanel () {
    StateSavingCollapseBoxBorder questionBox = new StateSavingCollapseBoxBorder("questionBox", "questionToggle", null, getPageName());
    add(questionBox);
    questionBox.setVisible(ISIApplication.get().isMyQuestionsOn() && (showXmlContent));
      questionContainer = new WebMarkupContainer("questionContainer");
    questionContainer.setOutputMarkupId(true);
      questionBox.add(questionContainer);
    PopupSettings questionPopupSettings = ISIApplication.get().questionPopupSettings;
      questionList = new QuestionListView("question", QuestionPopup.class, questionPopupSettings, null,
          (ISISession.get().getTargetUserModel().getObject().getId()))
    questionContainer.add(questionList);
    questionContainer.add(new WebMarkupContainer("qButtonVisible").setVisible(false));
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

  }

  public void addHighlightPanel() { 
    boolean highlightsPanelOn = ISIApplication.get().isHighlightsPanelOn();

    StateSavingCollapseBoxBorder highlightBox = new StateSavingCollapseBoxBorder("highlightBox", "highlightToggle", "globalHighlight", getPageName());
    add(highlightBox);
    highlightBox.setVisible(highlightsPanelOn);
    highlightBox.add(new HighlightControlPanel("highlightControlPanel", loc, mSection));   
    HighlightDisplayPanel highlightDisplayPanel = new HighlightDisplayPanel("highlightDisplayPanel",
          responseService.getOrCreatePrompt(PromptType.PAGEHIGHLIGHT, loc),
          ISISession.get().getTargetUserModel());
    highlightDisplayPanel.setVisible(highlightsPanelOn);
    add(highlightDisplayPanel);
View Full Code Here

    ContentElement ce = responseService.getOrCreateContentElement(loc).getObject();
    tagBox.add(new TagPanel("tagPanel", ce, ISIApplication.get().getTagLinkBuilder()).setRenderBodyOnly(true));
  }
 
  protected void addQuestionsPanel () {
    StateSavingCollapseBoxBorder questionBox = new StateSavingCollapseBoxBorder("questionBox", "questionToggle", null, getPageName());
    add(questionBox);
    questionBox.setVisible(ISIApplication.get().isMyQuestionsOn());
      questionContainer = new WebMarkupContainer("questionContainer");
      questionBox.add(questionContainer);
    questionContainer.setOutputMarkupId(true);
    PopupSettings questionPopupSettings = ISIApplication.questionPopupSettings;
      questionList = new QuestionListView("question", QuestionPopup.class, questionPopupSettings, null, null);
    questionContainer.add(questionList);
    questionContainer.add(new WebMarkupContainer("qButtonVisible"));
View Full Code Here

TOP

Related Classes of org.cast.isi.component.StateSavingCollapseBoxBorder

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.