/** * Create child element {@odf.element style:page-layout-properties}. * * @param styleNumFormatValue the <code>String</code> value of <code>StyleNumFormatAttribute</code>, see {@odf.attribute style:num-format} at specification * @return the element {@odf.element style:page-layout-properties} */ public StylePageLayoutPropertiesElement newStylePageLayoutPropertiesElement(String styleNumFormatValue) { StylePageLayoutPropertiesElement stylePageLayoutProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StylePageLayoutPropertiesElement.class); stylePageLayoutProperties.setStyleNumFormatAttribute(styleNumFormatValue); this.appendChild(stylePageLayoutProperties); return stylePageLayoutProperties; }
/** * Create child element {@odf.element style:page-layout-properties}. * * @param styleNumFormatValue the <code>String</code> value of <code>StyleNumFormatAttribute</code>, see {@odf.attribute style:num-format} at specification * @return the element {@odf.element style:page-layout-properties} */ public StylePageLayoutPropertiesElement newStylePageLayoutPropertiesElement(String styleNumFormatValue) { StylePageLayoutPropertiesElement stylePageLayoutProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StylePageLayoutPropertiesElement.class); stylePageLayoutProperties.setStyleNumFormatAttribute(styleNumFormatValue); this.appendChild(stylePageLayoutProperties); return stylePageLayoutProperties; }
/** * Create child element {@odf.element style:page-layout-properties}. * * @param styleNumFormatValue the <code>String</code> value of <code>StyleNumFormatAttribute</code>, see {@odf.attribute style:num-format} at specification * @return the element {@odf.element style:page-layout-properties} */ public StylePageLayoutPropertiesElement newStylePageLayoutPropertiesElement(String styleNumFormatValue) { StylePageLayoutPropertiesElement stylePageLayoutProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StylePageLayoutPropertiesElement.class); stylePageLayoutProperties.setStyleNumFormatAttribute(styleNumFormatValue); this.appendChild(stylePageLayoutProperties); return stylePageLayoutProperties; }
/** * Create child element {@odf.element style:page-layout-properties}. * * @param styleNumFormatValue the <code>String</code> value of <code>StyleNumFormatAttribute</code>, see {@odf.attribute style:num-format} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element style:page-layout-properties} */ public StylePageLayoutPropertiesElement newStylePageLayoutPropertiesElement(String styleNumFormatValue) { StylePageLayoutPropertiesElement stylePageLayoutProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StylePageLayoutPropertiesElement.class); stylePageLayoutProperties.setStyleNumFormatAttribute(styleNumFormatValue); this.appendChild(stylePageLayoutProperties); return stylePageLayoutProperties; }
/** * Create child element {@odf.element style:page-layout-properties}. * * @param styleNumFormatValue the <code>String</code> value of <code>StyleNumFormatAttribute</code>, see {@odf.attribute style:num-format} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element style:page-layout-properties} */ public StylePageLayoutPropertiesElement newStylePageLayoutPropertiesElement(String styleNumFormatValue) { StylePageLayoutPropertiesElement stylePageLayoutProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StylePageLayoutPropertiesElement.class); stylePageLayoutProperties.setStyleNumFormatAttribute(styleNumFormatValue); this.appendChild(stylePageLayoutProperties); return stylePageLayoutProperties; }
/** * Create child element {@odf.element style:page-layout-properties}. * * @param styleNumFormatValue the <code>String</code> value of <code>StyleNumFormatAttribute</code>, see {@odf.attribute style:num-format} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element style:page-layout-properties} */ public StylePageLayoutPropertiesElement newStylePageLayoutPropertiesElement(String styleNumFormatValue) { StylePageLayoutPropertiesElement stylePageLayoutProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StylePageLayoutPropertiesElement.class); stylePageLayoutProperties.setStyleNumFormatAttribute(styleNumFormatValue); this.appendChild(stylePageLayoutProperties); return stylePageLayoutProperties; }
/** * Set the number format of this <code>PageLayoutProperties</code> * <p> * If the parameter <code>format</code> is null, the definition will be * removed. * * @param format * specify the number format. The values of the style:num-format * attribute are 1, i, I, string, an empty string, a or A. */ public void setNumberFormat(String format) { if (format == null) { mElement.removeAttribute(StyleNumFormatAttribute.ATTRIBUTE_NAME .getQName()); } else { mElement.setStyleNumFormatAttribute(format); } }
/** * Set the number format of this <code>PageLayoutProperties</code> * <p> * If the parameter <code>format</code> is null, the definition will be * removed. * * @param format * specify the number format. The values of the style:num-format * attribute are 1, i, I, string, an empty string, a or A. */ public void setNumberFormat(String format) { if (format == null) { mElement.removeAttribute(StyleNumFormatAttribute.ATTRIBUTE_NAME .getQName()); } else { mElement.setStyleNumFormatAttribute(format); } }