/** * Create child element {@odf.element style:background-image}. * * Child element is new in Odf 1.2 * * @return the element {@odf.element style:background-image} */ public StyleBackgroundImageElement newStyleBackgroundImageElement() { StyleBackgroundImageElement styleBackgroundImage = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleBackgroundImageElement.class); this.appendChild(styleBackgroundImage); return styleBackgroundImage; }
String backgroundColor = ele.getFoBackgroundColorAttribute(); if (StringUtils.isNotEmpty(backgroundColor)) { cssStyleSheet.setCSSProperty(BACKGROUND_COLOR, backgroundColor); String border = ele.getFoBorderAttribute(); if (StringUtils.isNotEmpty(border)) { cssStyleSheet.setCSSProperty(BORDER, border); String borderBottom = ele.getFoBorderBottomAttribute(); if (StringUtils.isNotEmpty(borderBottom)) { cssStyleSheet.setCSSProperty(BORDER_BOTTOM, borderBottom); String borderLeft = ele.getFoBorderLeftAttribute(); if (StringUtils.isNotEmpty(borderLeft)) { cssStyleSheet.setCSSProperty(BORDER_LEFT, borderLeft); String borderRight = ele.getFoBorderRightAttribute(); if (StringUtils.isNotEmpty(borderRight)) { cssStyleSheet.setCSSProperty(BORDER_RIGHT, borderRight); String borderTop = ele.getFoBorderTopAttribute(); if (StringUtils.isNotEmpty(borderTop)) { cssStyleSheet.setCSSProperty(BORDER_TOP, borderTop); String margin = ele.getFoMarginAttribute(); if (StringUtils.isNotEmpty(margin)) { cssStyleSheet.setCSSProperty(MARGIN, margin); String marginBottom = ele.getFoMarginBottomAttribute();
String backgroundColor = ele.getFoBackgroundColorAttribute(); if ( StringUtils.isNotEmpty( backgroundColor ) ) String border = ele.getFoBorderAttribute(); if ( StringUtils.isNotEmpty( border ) ) String borderBottom = ele.getFoBorderBottomAttribute(); if ( StringUtils.isNotEmpty( borderBottom ) ) String borderLeft = ele.getFoBorderLeftAttribute(); if ( StringUtils.isNotEmpty( borderLeft ) ) String borderRight = ele.getFoBorderRightAttribute(); if ( StringUtils.isNotEmpty( borderRight ) ) String borderTop = ele.getFoBorderTopAttribute(); if ( StringUtils.isNotEmpty( borderTop ) ) String margin = ele.getFoMarginAttribute(); if ( StringUtils.isNotEmpty( margin ) ) String marginBottom = ele.getFoMarginBottomAttribute(); if ( StringUtils.isNotEmpty( marginBottom ) ) String marginLeft = ele.getFoMarginLeftAttribute(); if ( StringUtils.isNotEmpty( marginLeft ) ) String marginRight = ele.getFoMarginRightAttribute(); if ( StringUtils.isNotEmpty( marginRight ) )
/** * Create child element {@odf.element style:background-image}. * * Child element is new in Odf 1.2 * * @return the element {@odf.element style:background-image} */ public StyleBackgroundImageElement newStyleBackgroundImageElement() { StyleBackgroundImageElement styleBackgroundImage = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleBackgroundImageElement.class); this.appendChild(styleBackgroundImage); return styleBackgroundImage; }
/** * Create child element {@odf.element style:background-image}. * * Child element is new in Odf 1.2 * * @return the element {@odf.element style:background-image} */ public StyleBackgroundImageElement newStyleBackgroundImageElement() { StyleBackgroundImageElement styleBackgroundImage = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleBackgroundImageElement.class); this.appendChild(styleBackgroundImage); return styleBackgroundImage; }
/** * Create child element {@odf.element style:columns}. * * @param foColumnCountValue the <code>Integer</code> value of <code>FoColumnCountAttribute</code>, see {@odf.attribute fo:column-count} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element style:columns} */ public StyleColumnsElement newStyleColumnsElement(int foColumnCountValue) { StyleColumnsElement styleColumns = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleColumnsElement.class); styleColumns.setFoColumnCountAttribute(foColumnCountValue); this.appendChild(styleColumns); return styleColumns; }
/** * Create child element {@odf.element text:list-style}. * * @param styleNameValue the <code>String</code> value of <code>StyleNameAttribute</code>, see {@odf.attribute style:name} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element text:list-style} */ public TextListStyleElement newTextListStyleElement(String styleNameValue) { TextListStyleElement textListStyle = ((OdfFileDom) this.ownerDocument).newOdfElement(TextListStyleElement.class); textListStyle.setStyleNameAttribute(styleNameValue); this.appendChild(textListStyle); return textListStyle; }
/** * Create child element {@odf.element style:columns}. * * @param foColumnCountValue the <code>Integer</code> value of <code>FoColumnCountAttribute</code>, see {@odf.attribute fo:column-count} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element style:columns} */ public StyleColumnsElement newStyleColumnsElement(int foColumnCountValue) { StyleColumnsElement styleColumns = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleColumnsElement.class); styleColumns.setFoColumnCountAttribute(foColumnCountValue); this.appendChild(styleColumns); return styleColumns; }
/** * Create child element {@odf.element style:columns}. * * @param foColumnCountValue the <code>Integer</code> value of <code>FoColumnCountAttribute</code>, see {@odf.attribute fo:column-count} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element style:columns} */ public StyleColumnsElement newStyleColumnsElement(int foColumnCountValue) { StyleColumnsElement styleColumns = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleColumnsElement.class); styleColumns.setFoColumnCountAttribute(foColumnCountValue); this.appendChild(styleColumns); return styleColumns; }
/** * Create child element {@odf.element text:list-style}. * * @param styleNameValue the <code>String</code> value of <code>StyleNameAttribute</code>, see {@odf.attribute style:name} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element text:list-style} */ public TextListStyleElement newTextListStyleElement(String styleNameValue) { TextListStyleElement textListStyle = ((OdfFileDom) this.ownerDocument).newOdfElement(TextListStyleElement.class); textListStyle.setStyleNameAttribute(styleNameValue); this.appendChild(textListStyle); return textListStyle; }
/** * Create child element {@odf.element text:list-style}. * * @param styleNameValue the <code>String</code> value of <code>StyleNameAttribute</code>, see {@odf.attribute style:name} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element text:list-style} */ public TextListStyleElement newTextListStyleElement(String styleNameValue) { TextListStyleElement textListStyle = ((OdfFileDom) this.ownerDocument).newOdfElement(TextListStyleElement.class); textListStyle.setStyleNameAttribute(styleNameValue); this.appendChild(textListStyle); return textListStyle; }