Examples of newOfficeFormsElement()


Examples of org.odftoolkit.odfdom.dom.element.office.OfficeTextElement.newOfficeFormsElement()

  @Test
  public void testCreatChildrenForForm() {
    try {
      OdfTextDocument doc = OdfTextDocument.newTextDocument();
      OfficeTextElement text = doc.getContentRoot();
      FormFormElement form = text.newOfficeFormsElement().newFormFormElement();
      form.setFormNameAttribute("NewFrom");
      OdfFileDom contentDom = doc.getContentDom();
      XPath xpath = contentDom.getXPath();
      FormFormElement formTest = (FormFormElement) xpath.evaluate("//form:form[last()]", contentDom, XPathConstants.NODE);
      Assert.assertEquals(formTest, form);
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.