/** * 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; }
@Override public void visit(StyleTableRowPropertiesElement ele) { // background-color String backgroundColor = ele.getFoBackgroundColorAttribute(); if (StringUtils.isNotEmpty(backgroundColor)) { cssStyleSheet.setCSSProperty(BACKGROUND_COLOR, backgroundColor); } // min-height String minHeight = ele.getStyleMinRowHeightAttribute(); if (StringUtils.isNotEmpty(minHeight)) { cssStyleSheet.setCSSProperty(MIN_HEIGHT, minHeight); } // height String height = ele.getStyleRowHeightAttribute(); if (StringUtils.isNotEmpty(height)) { cssStyleSheet.setCSSProperty(HEIGHT, minHeight); } super.visit(ele); }
String minHeight = ele.getStyleMinRowHeightAttribute(); if ( StringUtils.isNotEmpty( minHeight ) ) String height = ele.getStyleRowHeightAttribute(); if ( StringUtils.isNotEmpty( height ) ) String keepTogether = ele.getFoKeepTogetherAttribute(); if ( StringUtils.isNotEmpty( keepTogether ) )
/** * Sets the value of ODFDOM attribute representation <code>StyleUseOptimalRowHeightAttribute</code> , See {@odf.attribute style:use-optimal-row-height} * * @param styleUseOptimalRowHeightValue The type is <code>Boolean</code> */ public void setStyleUseOptimalRowHeightAttribute(Boolean styleUseOptimalRowHeightValue) { StyleUseOptimalRowHeightAttribute attr = new StyleUseOptimalRowHeightAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setBooleanValue(styleUseOptimalRowHeightValue.booleanValue()); }
@Override public void visit(StyleTableRowPropertiesElement ele) { StyleTableRowProperties tableRowProperties = currentStyle .getTableRowProperties(); if (tableRowProperties == null) { tableRowProperties = new StyleTableRowProperties(); currentStyle.setTableRowProperties(tableRowProperties); } // height String height = ele.getStyleRowHeightAttribute(); if (StringUtils.isNotEmpty(height)) { tableRowProperties.setRowHeight(ODFUtils .getDimensionAsPoint(height)); } }
@Override public void visit( StyleTableRowPropertiesElement ele ) { // background-color String backgroundColor = ele.getFoBackgroundColorAttribute(); if ( StringUtils.isNotEmpty( backgroundColor ) ) { cssStyleSheet.setCSSProperty( BACKGROUND_COLOR, backgroundColor ); } // min-height String minHeight = ele.getStyleMinRowHeightAttribute(); if ( StringUtils.isNotEmpty( minHeight ) ) { cssStyleSheet.setCSSProperty( MIN_HEIGHT, minHeight ); } // height String height = ele.getStyleRowHeightAttribute(); if ( StringUtils.isNotEmpty( height ) ) { cssStyleSheet.setCSSProperty( HEIGHT, minHeight ); } super.visit( ele ); }
String minHeight = ele.getStyleMinRowHeightAttribute(); if ( StringUtils.isNotEmpty( minHeight ) ) String height = ele.getStyleRowHeightAttribute(); if ( StringUtils.isNotEmpty( height ) ) String keepTogether = ele.getFoKeepTogetherAttribute(); if ( StringUtils.isNotEmpty( keepTogether ) )
/** * Sets the value of ODFDOM attribute representation <code>StyleUseOptimalRowHeightAttribute</code> , See {@odf.attribute style:use-optimal-row-height} * * @param styleUseOptimalRowHeightValue The type is <code>Boolean</code> */ public void setStyleUseOptimalRowHeightAttribute(Boolean styleUseOptimalRowHeightValue) { StyleUseOptimalRowHeightAttribute attr = new StyleUseOptimalRowHeightAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setBooleanValue(styleUseOptimalRowHeightValue.booleanValue()); }
/** * 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; }
/** * Sets the value of ODFDOM attribute representation <code>StyleUseOptimalRowHeightAttribute</code> , See {@odf.attribute style:use-optimal-row-height} * * @param styleUseOptimalRowHeightValue The type is <code>Boolean</code> */ public void setStyleUseOptimalRowHeightAttribute(Boolean styleUseOptimalRowHeightValue) { StyleUseOptimalRowHeightAttribute attr = new StyleUseOptimalRowHeightAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setBooleanValue(styleUseOptimalRowHeightValue.booleanValue()); }
/** * 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>FoKeepTogetherAttribute</code> , See {@odf.attribute fo:keep-together} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoKeepTogetherAttribute() { FoKeepTogetherAttribute attr = (FoKeepTogetherAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "keep-together"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Sets the value of ODFDOM attribute representation <code>StyleMinRowHeightAttribute</code> , See {@odf.attribute style:min-row-height} * * @param styleMinRowHeightValue The type is <code>String</code> */ public void setStyleMinRowHeightAttribute(String styleMinRowHeightValue) { StyleMinRowHeightAttribute attr = new StyleMinRowHeightAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(styleMinRowHeightValue); }
/** * 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>StyleUseOptimalRowHeightAttribute</code> , See {@odf.attribute style:use-optimal-row-height} * * @return - the <code>Boolean</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public Boolean getStyleUseOptimalRowHeightAttribute() { StyleUseOptimalRowHeightAttribute attr = (StyleUseOptimalRowHeightAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "use-optimal-row-height"); if (attr != null) { return Boolean.valueOf(attr.booleanValue()); } return null; }
/** * Sets the value of ODFDOM attribute representation <code>FoBackgroundColorAttribute</code> , See {@odf.attribute fo:background-color} * * @param foBackgroundColorValue The type is <code>String</code> */ public void setFoBackgroundColorAttribute(String foBackgroundColorValue) { FoBackgroundColorAttribute attr = new FoBackgroundColorAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(foBackgroundColorValue); }
/** * Receives the value of the ODFDOM attribute representation <code>FoBreakBeforeAttribute</code> , See {@odf.attribute fo:break-before} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoBreakBeforeAttribute() { FoBreakBeforeAttribute attr = (FoBreakBeforeAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "break-before"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Sets the value of ODFDOM attribute representation <code>FoKeepTogetherAttribute</code> , See {@odf.attribute fo:keep-together} * * @param foKeepTogetherValue The type is <code>String</code> */ public void setFoKeepTogetherAttribute(String foKeepTogetherValue) { FoKeepTogetherAttribute attr = new FoKeepTogetherAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(foKeepTogetherValue); }
/** * Receives the value of the ODFDOM attribute representation <code>StyleRowHeightAttribute</code> , See {@odf.attribute style:row-height} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getStyleRowHeightAttribute() { StyleRowHeightAttribute attr = (StyleRowHeightAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "row-height"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }