Package org.odftoolkit.odfdom.dom.attribute.text

Examples of org.odftoolkit.odfdom.dom.attribute.text.TextDisplayLevelsAttribute


   * Receives the value of the ODFDOM attribute representation <code>TextDisplayLevelsAttribute</code> , See {@odf.attribute text:display-levels}
   *
   * @return - the <code>Integer</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public Integer getTextDisplayLevelsAttribute() {
    TextDisplayLevelsAttribute attr = (TextDisplayLevelsAttribute) getOdfAttribute(OdfDocumentNamespace.TEXT, "display-levels");
    if (attr != null) {
      return Integer.valueOf(attr.intValue());
    }
    return Integer.valueOf(TextDisplayLevelsAttribute.DEFAULT_VALUE);
  }
View Full Code Here


   * Sets the value of ODFDOM attribute representation <code>TextDisplayLevelsAttribute</code> , See {@odf.attribute text:display-levels}
   *
   * @param textDisplayLevelsValue   The type is <code>Integer</code>
   */
  public void setTextDisplayLevelsAttribute(Integer textDisplayLevelsValue) {
    TextDisplayLevelsAttribute attr = new TextDisplayLevelsAttribute((OdfFileDom) this.ownerDocument);
    setOdfAttribute(attr);
    attr.setIntValue(textDisplayLevelsValue.intValue());
  }
View Full Code Here

   * Receives the value of the ODFDOM attribute representation <code>TextDisplayLevelsAttribute</code> , See {@odf.attribute text:display-levels}
   *
   * @return - the <code>Integer</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public Integer getTextDisplayLevelsAttribute() {
    TextDisplayLevelsAttribute attr = (TextDisplayLevelsAttribute) getOdfAttribute(OdfDocumentNamespace.TEXT, "display-levels");
    if (attr != null) {
      return Integer.valueOf(attr.intValue());
    }
    return Integer.valueOf(TextDisplayLevelsAttribute.DEFAULT_VALUE);
  }
View Full Code Here

   * Sets the value of ODFDOM attribute representation <code>TextDisplayLevelsAttribute</code> , See {@odf.attribute text:display-levels}
   *
   * @param textDisplayLevelsValue   The type is <code>Integer</code>
   */
  public void setTextDisplayLevelsAttribute(Integer textDisplayLevelsValue) {
    TextDisplayLevelsAttribute attr = new TextDisplayLevelsAttribute((OdfFileDom) this.ownerDocument);
    setOdfAttribute(attr);
    attr.setIntValue(textDisplayLevelsValue.intValue());
  }
View Full Code Here

TOP

Related Classes of org.odftoolkit.odfdom.dom.attribute.text.TextDisplayLevelsAttribute

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.