Package org.odftoolkit.simple.common.field

Examples of org.odftoolkit.simple.common.field.ReferenceField


  public void testReplaceWithReferenceField() {
    try {
      search = new TextNavigation("ReplaceReferenceTarget", doc);
      TextSpanElement newTextSpanElement = doc.newParagraph("Selection Reference Content:").newTextSpanElement();
      newTextSpanElement.setTextContent("This is a test selection reference content.");
      ReferenceField referenceField = Fields.createReferenceField(newTextSpanElement, "selection-test-ref");
      // count the initial reference field count.
      OdfContentDom contentDom = doc.getContentDom();
      NodeList nodeList = contentDom.getElementsByTagName(TextReferenceRefElement.ELEMENT_NAME.getQName());
      int i = nodeList.getLength();
      OdfStylesDom styleDom = doc.getStylesDom();
View Full Code Here

TOP

Related Classes of org.odftoolkit.simple.common.field.ReferenceField

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.