Package org.odftoolkit.odfdom.dom.element.text

Examples of org.odftoolkit.odfdom.dom.element.text.TextReferenceRefElement


   *            the display type.
   */
  public void appendReferenceTo(OdfElement odfEle, DisplayType type) {
    // create reference ref element.
    TextSpanElement spanElement = ((OdfFileDom) odfEle.getOwnerDocument()).newOdfElement(TextSpanElement.class);
    TextReferenceRefElement referenceRefElement = spanElement.newTextReferenceRefElement();
    referenceRefElement.setTextRefNameAttribute(name);
    referenceRefElement.setTextReferenceFormatAttribute(type.toString());
    // insert
    if (odfEle instanceof TextPElement) {
      odfEle.appendChild(spanElement);
    } else {
      OdfElement parentEle = (OdfElement) odfEle.getParentNode();
View Full Code Here

TOP

Related Classes of org.odftoolkit.odfdom.dom.element.text.TextReferenceRefElement

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.