Examples of MetaPrintedByElement


Examples of org.odftoolkit.odfdom.dom.element.meta.MetaPrintedByElement

   * @return the name of the last person who printed the current document;
   * <p>
   * <code>null</code>, if element is not set
   */
  public String getPrintedBy() {
    MetaPrintedByElement printedByEle = OdfElement.findFirstChildNode(
        MetaPrintedByElement.class, mOfficeMetaElement);
    if (printedByEle != null) {
      return printedByEle.getTextContent();
    }
    return null;
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.meta.MetaPrintedByElement

   * meta:printed-by}.
   *
   * @param printedBy  the name need to set for the last person who printed the current document. NULL will remove the element from the meta.xml.
   */
  public void setPrintedBy(String printedBy) {
    MetaPrintedByElement printedByEle = OdfElement.findFirstChildNode(
        MetaPrintedByElement.class, mOfficeMetaElement);
    if (printedBy == null) {
      if (printedByEle != null) {
        mOfficeMetaElement.removeChild(printedByEle);
      }
    } else {
      if (printedByEle == null) {
        printedByEle = mOfficeMetaElement.newMetaPrintedByElement();
      }
      printedByEle.setTextContent(printedBy);
    }
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.meta.MetaPrintedByElement

   * @return the name of the last person who printed the current document;
   * <p>
   * <code>null</code>, if element is not set
   */
  public String getPrintedBy() {
    MetaPrintedByElement printedByEle = OdfElement.findFirstChildNode(
        MetaPrintedByElement.class, mOfficeMetaElement);
    if (printedByEle != null) {
      return printedByEle.getTextContent();
    }
    return null;
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.meta.MetaPrintedByElement

   * meta:printed-by}.
   *
   * @param printedBy  the name need to set for the last person who printed the current document. NULL will remove the element from the meta.xml.
   */
  public void setPrintedBy(String printedBy) {
    MetaPrintedByElement printedByEle = OdfElement.findFirstChildNode(
        MetaPrintedByElement.class, mOfficeMetaElement);
    if (printedBy == null) {
      if (printedByEle != null) {
        mOfficeMetaElement.removeChild(printedByEle);
      }
    } else {
      if (printedByEle == null) {
        printedByEle = mOfficeMetaElement.newMetaPrintedByElement();
      }
      printedByEle.setTextContent(printedBy);
    }
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.meta.MetaPrintedByElement

   * <p>
   * <code>null</code>, if element is not set
   * @see org.odftoolkit.odfdom.dom.element.meta.MetaPrintedByElement.
   */
  public String getPrintedBy() {
    MetaPrintedByElement printedByEle = OdfElement.findFirstChildNode(
        MetaPrintedByElement.class, mOfficeMetaElement);
    if (printedByEle != null) {
      return printedByEle.getTextContent();
    }
    return null;
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.meta.MetaPrintedByElement

   *
   * @param printedBy  the name need to set for the last person who printed the current document
   * @see org.odftoolkit.odfdom.dom.element.meta.MetaPrintedByElement.
   */
  public void setPrintedBy(String printedBy) {
    MetaPrintedByElement printedByEle = OdfElement.findFirstChildNode(
        MetaPrintedByElement.class, mOfficeMetaElement);
    if (printedByEle == null) {
      printedByEle = mOfficeMetaElement.newMetaPrintedByElement();
    }
    printedByEle.setTextContent(printedBy);
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.meta.MetaPrintedByElement

   * Child element is new in Odf 1.2
   *
   * @return the element {@odf.element meta:printed-by}
   */
  public MetaPrintedByElement newMetaPrintedByElement() {
    MetaPrintedByElement metaPrintedBy = ((OdfFileDom) this.ownerDocument).newOdfElement(MetaPrintedByElement.class);
    this.appendChild(metaPrintedBy);
    return metaPrintedBy;
  }
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.