Examples of newTextDateElement()


Examples of org.odftoolkit.odfdom.dom.element.text.TextSpanElement.newTextDateElement()

  // package constructor, only called by Fields.
  DateField(OdfElement odfElement) {
    TextSpanElement spanElement = ((OdfFileDom) odfElement.getOwnerDocument()).newOdfElement(TextSpanElement.class);
    odfElement.appendChild(spanElement);
    dateElement = spanElement.newTextDateElement();
    OdfNumberDateStyle dateStyle = newDateStyle();
    String dateStyleName = dateStyle.getStyleNameAttribute();
    dateStyle.buildFromFormat(DEFAULT_DATE_FORMAT);
    dateStyle.setStyleNameAttribute(dateStyleName);
    dateElement.setStyleDataStyleNameAttribute(dateStyle.getStyleNameAttribute());
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.