Examples of newChildId()


Examples of org.apache.wicket.markup.repeater.RepeatingView.newChildId()

      noData.setVisible(false);
      RepeatingView pageListing = new RepeatingView("pageListing");
      rootContainer.add(pageListing);     

      for (ISIXmlSection sec : responseMap.keySet()) {
        WebMarkupContainer pageItem = new WebMarkupContainer(pageListing.newChildId());
        pageItem.setOutputMarkupId(true);
        pageListing.add(pageItem);

        RepeatingView questionListing = new RepeatingView("questionListing");
        pageItem.add(questionListing);
View Full Code Here

Examples of org.apache.wicket.markup.repeater.RepeatingView.newChildId()

        SortedMap<ISIPrompt, List<ISIResponse>> promptResponseMap = responseMap.get(sec);

        for (ISIPrompt isiprompt : promptResponseMap.keySet()) {
          List<ISIResponse> responseList = promptResponseMap.get(isiprompt);

          WebMarkupContainer questionItem = new WebMarkupContainer(questionListing.newChildId());
          questionItem.setOutputMarkupId(true);
          questionListing.add(questionItem);

          BookmarkablePageLink<ISIStandardPage> titleLink = new SectionLinkFactory().linkToPage("titleLink", sec);
          titleLink.add(ISIApplication.get().iconFor(sec.getSectionAncestor()));
View Full Code Here

Examples of org.apache.wicket.markup.repeater.RepeatingView.newChildId()

          questionItem.add(factory.makeQuestionTextComponent("questionText", isiprompt));
          RepeatingView responses = new RepeatingView("responseListing");
          questionItem.add(responses);

          for (ISIResponse response : responseList) {
            WebMarkupContainer responseItem = new WebMarkupContainer(responses.newChildId());
            responseItem.setOutputMarkupId(true);
            responses.add(responseItem);
            responseItem.add(new WebMarkupContainer("responseAnchor")
                .add(new SimpleAttributeModifier("name", String.valueOf(response.getId()))));
            responseItem.add(new ResponseViewerFactory().makeResponseViewComponent("response", new HibernateObjectModel<ISIResponse>(Response.class, response.getId())));
View Full Code Here

Examples of org.apache.wicket.markup.repeater.RepeatingView.newChildId()

    // Page Number Repeater
    RepeatingView pageRepeater = new RepeatingView("pageRepeater");
    int pageNumDisplay = ISIApplication.get().getStudentContent().getLabelIndex(ISIXmlSection.SectionType.PAGE, currentSection.firstPage());

    for(ISIXmlSection page = currentSection.firstPage(); page != null; page = page.getNext(), pageNumDisplay++) {
      WebMarkupContainer pageLinkContainer = new WebMarkupContainer(pageRepeater.newChildId());
      pageRepeater.add(pageLinkContainer);
     
      BookmarkablePageLink<ISIStandardPage> link = new SectionLinkFactory().linkToPage("pageLink", page);
      pageLinkContainer.add(link);
      link.setVisible(ISIApplication.get().isPageNumbersOn());
View Full Code Here

Examples of org.apache.wicket.markup.repeater.RepeatingView.newChildId()

         // has been modified, and if so, updating it.  This is mysterious and should be
         // replaced with a more transparent mechanism or at least a better name for the method.
         doc.getLastModified();
         for (XmlSection rs : doc.getTocSection().getChildren()) { // For each chapter in the document
           ISIXmlSection rootSection = (ISIXmlSection) rs;
           WebMarkupContainer rootSectionContainer = new WebMarkupContainer(chapterRepeater.newChildId());
           chapterRepeater.add(rootSectionContainer);
           // Chapter that contains the bookmark is open by default.
           if (rootSection.equals(currentRootSection))
             rootSectionContainer.add(new ClassAttributeModifier("open"));
           rootSectionContainer.add(new Label("chapterTitle", rootSection.getTitle()));
View Full Code Here

Examples of org.apache.wicket.markup.repeater.RepeatingView.newChildId()

    for (XmlDocument doc : ISIApplication.get().getStudentContent()) { // For each XML Document
      for (XmlSection rs : doc.getTocSection().getChildren()) { // For each chapter in the document; tends to be only one.

        final ISIXmlSection rootSection = (ISIXmlSection) rs;
        WebMarkupContainer rootSectionContainer = new WebMarkupContainer(chapterRepeater.newChildId());
        chapterRepeater.add(rootSectionContainer);

        rootSectionContainer.add(new Label("title", rs.getTitle()));
        rootSectionContainer.add(new Label("subtitle", rootSection.getSubTitle()));
View Full Code Here

Examples of org.apache.wicket.markup.repeater.RepeatingView.newChildId()

        // TODO: Lame hack for differences between IQWST/FS
        // TODO: Have TeacherToc create a custom repeater that can be extended by subclasses?
        RepeatingView superSectionRepeater = new RepeatingView("superSectionRepeater");
        for (XmlSection rc : rootSection.getChildren()) {
          ISIXmlSection rootChild = (ISIXmlSection) rc;
          WebMarkupContainer superSectionContainer = new WebMarkupContainer(superSectionRepeater.newChildId());
          superSectionRepeater.add(superSectionContainer);
          if (rootChild.isSuperSection()) {
            superSectionContainer.add(new Label("superSectionTitle", rootChild.getTitle()));
            if (rootChild.getChildren().size() > 1) {
              superSectionContainer.add(new SimpleAttributeModifier("colspan", String.valueOf(rootChild.getChildren().size())));
View Full Code Here

Examples of org.apache.wicket.markup.repeater.RepeatingView.newChildId()

   
    List<Integer> sorted = new ArrayList<Integer>(responseMap.keySet());
    Collections.sort(sorted);
   
    for (Integer tries : sorted) {
      WebMarkupContainer container = new WebMarkupContainer(byTries.newChildId());
      byTries.add(container);
      List<Response> responses = responseMap.get(tries);
      container.add(new SingleSelectScoreIndicator("score", new HibernateObjectModel<Response>(responses.get(0)), tries>0));
      container.add(new Label("count", String.valueOf(responses.size())));
      container.add(new StudentList("studentList", responses));
View Full Code Here

Examples of org.apache.wicket.markup.repeater.RepeatingView.newChildId()

  }

  protected RepeatingView makePromptResponseRepeater(String id) {
    RepeatingView rvPromptResponseList = new RepeatingView(id);
    for (ISIPrompt prompt : responseService.getResponseCollectionPrompts(mUser, paramCollectionName)) {
      rvPromptResponseList.add(makePromptContainer(rvPromptResponseList.newChildId(), prompt));
    }
    return rvPromptResponseList;
  }

  protected RepeatingView makeCollectionNameRepeater(List<String> listNames) {
View Full Code Here

Examples of org.apache.wicket.markup.repeater.RepeatingView.newChildId()

  protected RepeatingView makeCollectionNameRepeater(List<String> listNames) {
    RepeatingView rvCollectionList = new RepeatingView("collectionList");
   
    for (String collectionName : listNames) {
      WebMarkupContainer wmc = new WebMarkupContainer(rvCollectionList.newChildId());
      wmc.add(makeCollectionLink(collectionName));
      rvCollectionList.add(wmc);
    }
    return rvCollectionList;
  }
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.