Examples of DcDateElement


Examples of org.odftoolkit.odfdom.dom.element.dc.DcDateElement

    if (dcCreatorElement == null) {
      dcCreatorElement = annotation.newDcCreatorElement();
    }
    dcCreatorElement.setTextContent(System.getProperty("user.name"));
    String dcDate = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss").format(new Date());
    DcDateElement dcDateElement = OdfElement.findFirstChildNode(DcDateElement.class, annotation);
    if (dcDateElement == null) {
      dcDateElement = annotation.newDcDateElement();
    }
    dcDateElement.setTextContent(dcDate);
    mCellElement.appendChild(annotation);
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.dc.DcDateElement

   * <p>
   * <code>null</code>, if the element is not set.
   * @see org.odftoolkit.odfdom.dom.element.meta.DcDateElement.
   */
  public Calendar getDcdate() {
    DcDateElement dcDateEle = OdfElement.findFirstChildNode(
        DcDateElement.class, mOfficeMetaElement);
    if (dcDateEle != null) {
      return stringToCalendar(dcDateEle.getTextContent());
    }
    return null;
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.dc.DcDateElement

   *
   * @param dcdate  the date and time need to set
   * @see org.odftoolkit.odfdom.dom.element.meta.DcDateElement.
   */
  public void setDcdate(Calendar dcdate) {
    DcDateElement dcDateEle = OdfElement.findFirstChildNode(
        DcDateElement.class, mOfficeMetaElement);
    if (dcDateEle == null) {
      dcDateEle = mOfficeMetaElement.newDcDateElement();
    }
    dcDateEle.setTextContent(calendarToString(dcdate));
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.dc.DcDateElement

      creator = System.getProperty("user.name");
    }
    dcCreatorElement.setTextContent(creator);
    // set date
    String dcDate = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss").format(new Date());
    DcDateElement dcDateElement = annotationElement.newDcDateElement();
    dcDateElement.setTextContent(dcDate);
    TextPElement notePElement = annotationElement.newTextPElement();
    TextSpanElement noteSpanElement = notePElement.newTextSpanElement();
    // set comment style
    OdfOfficeAutomaticStyles styles = null;
    if (dom instanceof OdfContentDom) {
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.dc.DcDateElement

   * Child element is mandatory.
   *
   * @return the element {@odf.element dc:date}
   */
  public DcDateElement newDcDateElement() {
    DcDateElement dcDate = ((OdfFileDom) this.ownerDocument).newOdfElement(DcDateElement.class);
    this.appendChild(dcDate);
    return dcDate;
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.dc.DcDateElement

   * Child element is new in Odf 1.2
   *
   * @return the element {@odf.element dc:date}
   */
  public DcDateElement newDcDateElement() {
    DcDateElement dcDate = ((OdfFileDom) this.ownerDocument).newOdfElement(DcDateElement.class);
    this.appendChild(dcDate);
    return dcDate;
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.dc.DcDateElement

   * Create child element {@odf.element dc:date}.
   *
   * @return the element {@odf.element dc:date}
   */
  public DcDateElement newDcDateElement() {
    DcDateElement dcDate = ((OdfFileDom) this.ownerDocument).newOdfElement(DcDateElement.class);
    this.appendChild(dcDate);
    return dcDate;
  }
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.