/** * 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; }
/** * Receives the value of the ODFDOM attribute representation <code>FoBackgroundColorAttribute</code> , See {@odf.attribute fo:background-color} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoBackgroundColorAttribute() { FoBackgroundColorAttribute attr = (FoBackgroundColorAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "background-color"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
String backgroundColor = ele.getFoBackgroundColorAttribute(); if ( StringUtils.isNotEmpty( backgroundColor ) ) String width = ele.getStyleWidthAttribute(); if ( StringUtils.isNotEmpty( width ) ) String align = ele.getTableAlignAttribute(); if ( StringUtils.isNotEmpty( align ) ) 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 ) ) String marginTop = ele.getFoMarginTopAttribute(); if ( StringUtils.isNotEmpty( marginTop ) ) Boolean mayBreakBetweenRows = ele.getStyleMayBreakBetweenRowsAttribute(); if ( mayBreakBetweenRows != null )
String backgroundColor = ele.getFoBackgroundColorAttribute(); if (StringUtils.isNotEmpty(backgroundColor)) { cssStyleSheet.setCSSProperty(BACKGROUND_COLOR, backgroundColor); String margin = ele.getFoMarginAttribute(); if (StringUtils.isNotEmpty(margin)) { cssStyleSheet.setCSSProperty(MARGIN, margin); String marginBottom = ele.getFoMarginBottomAttribute(); if (StringUtils.isNotEmpty(marginBottom)) { cssStyleSheet.setCSSProperty(MARGIN_BOTTOM, marginBottom); String marginLeft = ele.getFoMarginLeftAttribute(); if (StringUtils.isNotEmpty(marginLeft)) { cssStyleSheet.setCSSProperty(MARGIN_LEFT, marginLeft); String marginRight = ele.getFoMarginRightAttribute(); if (StringUtils.isNotEmpty(marginRight)) { cssStyleSheet.setCSSProperty(MARGIN_RIGHT, marginRight); String marginTop = ele.getFoMarginTopAttribute(); if (StringUtils.isNotEmpty(marginTop)) { cssStyleSheet.setCSSProperty(MARGIN_TOP, marginTop); String borderModel = ele.getTableBorderModelAttribute(); if (StringUtils.isNotEmpty(borderModel)) { if ("collapsing".equals(borderModel)) { String width = ele.getStyleWidthAttribute();
String backgroundColor = ele.getFoBackgroundColorAttribute(); if (StringUtils.isNotEmpty(backgroundColor)) { tableProperties.setBackgroundColor(ColorRegistry.getInstance() String width = ele.getStyleWidthAttribute(); if (StringUtils.isNotEmpty(width)) { tableProperties.setWidth(ODFUtils.getDimensionAsPoint(width));
String backgroundColor = ele.getFoBackgroundColorAttribute(); if ( StringUtils.isNotEmpty( backgroundColor ) ) String width = ele.getStyleWidthAttribute(); if ( StringUtils.isNotEmpty( width ) ) String align = ele.getTableAlignAttribute(); if ( StringUtils.isNotEmpty( align ) ) 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 ) ) String marginTop = ele.getFoMarginTopAttribute(); if ( StringUtils.isNotEmpty( marginTop ) ) Boolean mayBreakBetweenRows = ele.getStyleMayBreakBetweenRowsAttribute(); if ( mayBreakBetweenRows != null )
String backgroundColor = ele.getFoBackgroundColorAttribute(); if ( StringUtils.isNotEmpty( backgroundColor ) ) 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 ) ) String marginTop = ele.getFoMarginTopAttribute(); if ( StringUtils.isNotEmpty( marginTop ) ) String borderModel = ele.getTableBorderModelAttribute(); if ( StringUtils.isNotEmpty( borderModel ) ) String width = ele.getStyleWidthAttribute(); if ( StringUtils.isNotEmpty( width ) )
/** * Receives the value of the ODFDOM attribute representation <code>FoMarginRightAttribute</code> , See {@odf.attribute fo:margin-right} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoMarginRightAttribute() { FoMarginRightAttribute attr = (FoMarginRightAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "margin-right"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * 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; }
/** * Receives the value of the ODFDOM attribute representation <code>FoMarginAttribute</code> , See {@odf.attribute fo:margin} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoMarginAttribute() { FoMarginAttribute attr = (FoMarginAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "margin"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * 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; }
/** * Receives the value of the ODFDOM attribute representation <code>FoMarginTopAttribute</code> , See {@odf.attribute fo:margin-top} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoMarginTopAttribute() { FoMarginTopAttribute attr = (FoMarginTopAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "margin-top"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Receives the value of the ODFDOM attribute representation <code>FoMarginRightAttribute</code> , See {@odf.attribute fo:margin-right} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoMarginRightAttribute() { FoMarginRightAttribute attr = (FoMarginRightAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "margin-right"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Receives the value of the ODFDOM attribute representation <code>FoMarginAttribute</code> , See {@odf.attribute fo:margin} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoMarginAttribute() { FoMarginAttribute attr = (FoMarginAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "margin"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Receives the value of the ODFDOM attribute representation <code>FoMarginBottomAttribute</code> , See {@odf.attribute fo:margin-bottom} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoMarginBottomAttribute() { FoMarginBottomAttribute attr = (FoMarginBottomAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "margin-bottom"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Receives the value of the ODFDOM attribute representation <code>FoMarginTopAttribute</code> , See {@odf.attribute fo:margin-top} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoMarginTopAttribute() { FoMarginTopAttribute attr = (FoMarginTopAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "margin-top"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Receives the value of the ODFDOM attribute representation <code>TableDisplayAttribute</code> , See {@odf.attribute table:display} * * @return - the <code>Boolean</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public Boolean getTableDisplayAttribute() { TableDisplayAttribute attr = (TableDisplayAttribute) getOdfAttribute(OdfDocumentNamespace.TABLE, "display"); if (attr != null) { return Boolean.valueOf(attr.booleanValue()); } return null; }
/** * Receives the value of the ODFDOM attribute representation <code>FoMarginLeftAttribute</code> , See {@odf.attribute fo:margin-left} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoMarginLeftAttribute() { FoMarginLeftAttribute attr = (FoMarginLeftAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "margin-left"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Receives the value of the ODFDOM attribute representation <code>StyleMayBreakBetweenRowsAttribute</code> , See {@odf.attribute style:may-break-between-rows} * * @return - the <code>Boolean</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public Boolean getStyleMayBreakBetweenRowsAttribute() { StyleMayBreakBetweenRowsAttribute attr = (StyleMayBreakBetweenRowsAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "may-break-between-rows"); if (attr != null) { return Boolean.valueOf(attr.booleanValue()); } return null; }
/** * Receives the value of the ODFDOM attribute representation <code>StylePageNumberAttribute</code> , See {@odf.attribute style:page-number} * * @return - the <code>Integer</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public Integer getStylePageNumberAttribute() { StylePageNumberAttribute attr = (StylePageNumberAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "page-number"); if (attr != null) { return Integer.valueOf(attr.intValue()); } return null; }