Package org.odftoolkit.odfdom.dom.element.number

Examples of org.odftoolkit.odfdom.dom.element.number.NumberTextStyleElement


   *
   * @param styleNameValue  the <code>String</code> value of <code>StyleNameAttribute</code>, see {@odf.attribute  style:name} at specification
   * @return the element {@odf.element number:text-style}
   */
   public NumberTextStyleElement newNumberTextStyleElement(String styleNameValue) {
    NumberTextStyleElement numberTextStyle = ((OdfFileDom) this.ownerDocument).newOdfElement(NumberTextStyleElement.class);
    numberTextStyle.setStyleNameAttribute(styleNameValue);
    this.appendChild(numberTextStyle);
    return numberTextStyle;
  }
View Full Code Here


        mBooleanStyles = new HashMap<String, NumberBooleanStyleElement>();
      }

      mBooleanStyles.put(booleanStyle.getStyleNameAttribute(), booleanStyle);
    } else if (node instanceof NumberTextStyleElement) {
      NumberTextStyleElement textStyle = (NumberTextStyleElement) node;

      if (mTextStyles == null) {
        mTextStyles = new HashMap<String, NumberTextStyleElement>();
      }

      mTextStyles.put(textStyle.getStyleNameAttribute(), textStyle);
    }
  }
View Full Code Here

        NumberBooleanStyleElement booleanStyle = (NumberBooleanStyleElement) node;
        mBooleanStyles.remove(booleanStyle.getStyleNameAttribute());
      }
    } else if (node instanceof NumberTextStyleElement) {
      if (mTextStyles != null) {
        NumberTextStyleElement textStyle = (NumberTextStyleElement) node;
        mTextStyles.remove(textStyle.getStyleNameAttribute());
      }
    }
  }
View Full Code Here

   *
   * @param styleNameValue  the <code>String</code> value of <code>StyleNameAttribute</code>, see {@odf.attribute  style:name} at specification
   * @return the element {@odf.element number:text-style}
   */
   public NumberTextStyleElement newNumberTextStyleElement(String styleNameValue) {
    NumberTextStyleElement numberTextStyle = ((OdfFileDom) this.ownerDocument).newOdfElement(NumberTextStyleElement.class);
    numberTextStyle.setStyleNameAttribute(styleNameValue);
    this.appendChild(numberTextStyle);
    return numberTextStyle;
  }
View Full Code Here

   *
   * @param styleNameValue  the <code>String</code> value of <code>StyleNameAttribute</code>, see {@odf.attribute  style:name} at specification
   * @return the element {@odf.element number:text-style}
   */
   public NumberTextStyleElement newNumberTextStyleElement(String styleNameValue) {
    NumberTextStyleElement numberTextStyle = ((OdfFileDom) this.ownerDocument).newOdfElement(NumberTextStyleElement.class);
    numberTextStyle.setStyleNameAttribute(styleNameValue);
    this.appendChild(numberTextStyle);
    return numberTextStyle;
  }
View Full Code Here

TOP

Related Classes of org.odftoolkit.odfdom.dom.element.number.NumberTextStyleElement

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.