Examples of XmlSection


Examples of org.cast.cwm.xml.XmlSection

      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(ListItem<XmlSection> item) {
        XmlSection sec3 = item.getModelObject();
        ContentLoc loc = new ContentLoc(sec3);
        BookmarkablePageLink<ISIStandardPage> link = new SectionLinkFactory().linkToPage("link", sec3);
        if (locsWithUnread.contains(loc.getLocation()))
          link.add(new Image("messageIcon", new ResourceReference("img/icons/envelope_new.png")));
        else if (locsWithMessages.contains(loc.getLocation()))
View Full Code Here

Examples of org.cast.cwm.xml.XmlSection

    return (b != null) && b;
  }

  private ISIXmlSection getIsiXmlSection(IModel<XmlSection> model) {
   
    XmlSection section = model.getObject();
    if ((section == null) || (!(section instanceof ISIXmlSection)))
      return null;
    return (ISIXmlSection) section;
  }
View Full Code Here

Examples of org.cast.cwm.xml.XmlSection

      } else { // "#ID" or "ID" case:
        file = getModel().getObject().getXmlDocument().getName(); // same file as we're currently viewing
      }
      XmlDocument document = xmlService.getDocument(file);
      String xmlId = href.substring(hashLocation+1);
      XmlSection section = document.getById(xmlId);
      XmlSectionModel mSection = new XmlSectionModel(section);
      return new AuthoredPopupLink(wicketId, xmlId, mSection);
     
    } else if (wicketId.startsWith("noteBackLink_")) {
      // Link back from a note to its (first) noteref.
      String idref = elt.getAttribute("idref");
      // Find candidate noterefs in this chapter
      XmlSection sec = getModel().getObject();
      XPath xPath = XPathFactory.newInstance().newXPath();
      xPath.setNamespaceContext(XmlService.get().getNamespaceContext());
      XmlSection linkSection = null;
      String linkText = "?";
      try {
        String path = String.format("//dtb:noteref[@idref='#%s']", idref);
        NodeList nl = (NodeList) xPath.evaluate(path, sec.getXmlDocument().getDocument().getDocumentElement(), XPathConstants.NODESET);
        if (nl.getLength() > 0) {
View Full Code Here

Examples of org.cast.cwm.xml.XmlSection

         }
       }
     } 
 
     // fall back to the title of page
    XmlSection section = mSection.getObject();
    return section.getTitle();
  }
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.