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

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


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


        mTimeStyles = new HashMap<String, OdfNumberTimeStyle>();
      }

      mTimeStyles.put(timeStyle.getStyleNameAttribute(), timeStyle);
    } else if (node instanceof NumberBooleanStyleElement) {
      NumberBooleanStyleElement booleanStyle = (NumberBooleanStyleElement) node;

      if (mBooleanStyles == null) {
        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>();
View Full Code Here

        OdfNumberTimeStyle timeStyle = (OdfNumberTimeStyle) node;
        mTimeStyles.remove(timeStyle.getStyleNameAttribute());
      }
    } else if (node instanceof NumberBooleanStyleElement) {
      if (mBooleanStyles != null) {
        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:boolean-style}
   */
   public NumberBooleanStyleElement newNumberBooleanStyleElement(String styleNameValue) {
    NumberBooleanStyleElement numberBooleanStyle = ((OdfFileDom) this.ownerDocument).newOdfElement(NumberBooleanStyleElement.class);
    numberBooleanStyle.setStyleNameAttribute(styleNameValue);
    this.appendChild(numberBooleanStyle);
    return numberBooleanStyle;
  }
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:boolean-style}
   */
   public NumberBooleanStyleElement newNumberBooleanStyleElement(String styleNameValue) {
    NumberBooleanStyleElement numberBooleanStyle = ((OdfFileDom) this.ownerDocument).newOdfElement(NumberBooleanStyleElement.class);
    numberBooleanStyle.setStyleNameAttribute(styleNameValue);
    this.appendChild(numberBooleanStyle);
    return numberBooleanStyle;
  }
View Full Code Here

TOP

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

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.