/** * 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>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; }
/** * Sets the value of ODFDOM attribute representation <code>StyleEditableAttribute</code> , See {@odf.attribute style:editable} * * @param styleEditableValue The type is <code>Boolean</code> */ public void setStyleEditableAttribute(Boolean styleEditableValue) { StyleEditableAttribute attr = new StyleEditableAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setBooleanValue(styleEditableValue.booleanValue()); }
String backgroundColor = ele.getFoBackgroundColorAttribute(); if ( StringUtils.isNotEmpty( backgroundColor ) ) Boolean dontBalanceTextColumns = ele.getTextDontBalanceTextColumnsAttribute(); if ( dontBalanceTextColumns != null ) String marginLeft = ele.getFoMarginLeftAttribute(); if ( StringUtils.isNotEmpty( marginLeft ) ) String marginRight = ele.getFoMarginRightAttribute(); if ( StringUtils.isNotEmpty( marginRight ) )
StyleSectionPropertiesElement sProperties = style .newStyleSectionPropertiesElement(); sProperties.setTextDontBalanceTextColumnsAttribute(false); sProperties.setStyleEditableAttribute(false); StyleColumnsElement columnEle = sProperties .newStyleColumnsElement(1); columnEle.setFoColumnGapAttribute("0in");
String backgroundColor = ele.getFoBackgroundColorAttribute(); if ( StringUtils.isNotEmpty( backgroundColor ) ) Boolean dontBalanceTextColumns = ele.getTextDontBalanceTextColumnsAttribute(); if ( dontBalanceTextColumns != null ) String marginLeft = ele.getFoMarginLeftAttribute(); if ( StringUtils.isNotEmpty( marginLeft ) ) String marginRight = ele.getFoMarginRightAttribute(); if ( StringUtils.isNotEmpty( marginRight ) )
StyleSectionPropertiesElement sProperties = style .newStyleSectionPropertiesElement(); sProperties.setTextDontBalanceTextColumnsAttribute(false); sProperties.setStyleEditableAttribute(false); StyleColumnsElement columnEle = sProperties .newStyleColumnsElement(1); columnEle.setFoColumnGapAttribute("0in");
/** * Receives the value of the ODFDOM attribute representation <code>StyleEditableAttribute</code> , See {@odf.attribute style:editable} * * @return - the <code>Boolean</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public Boolean getStyleEditableAttribute() { StyleEditableAttribute attr = (StyleEditableAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "editable"); if (attr != null) { return Boolean.valueOf(attr.booleanValue()); } return null; }
/** * Sets the value of ODFDOM attribute representation <code>TextDontBalanceTextColumnsAttribute</code> , See {@odf.attribute text:dont-balance-text-columns} * * @param textDontBalanceTextColumnsValue The type is <code>Boolean</code> */ public void setTextDontBalanceTextColumnsAttribute(Boolean textDontBalanceTextColumnsValue) { TextDontBalanceTextColumnsAttribute attr = new TextDontBalanceTextColumnsAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setBooleanValue(textDontBalanceTextColumnsValue.booleanValue()); }
StyleSectionPropertiesElement sProperties = style .newStyleSectionPropertiesElement(); sProperties.setTextDontBalanceTextColumnsAttribute(false); sProperties.setStyleEditableAttribute(false); StyleColumnsElement columnEle = sProperties .newStyleColumnsElement(1); columnEle.setFoColumnGapAttribute("0in");
/** * 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>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; }
/** * Sets the value of ODFDOM attribute representation <code>TextDontBalanceTextColumnsAttribute</code> , See {@odf.attribute text:dont-balance-text-columns} * * @param textDontBalanceTextColumnsValue The type is <code>Boolean</code> */ public void setTextDontBalanceTextColumnsAttribute(Boolean textDontBalanceTextColumnsValue) { TextDontBalanceTextColumnsAttribute attr = new TextDontBalanceTextColumnsAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setBooleanValue(textDontBalanceTextColumnsValue.booleanValue()); }
StyleSectionPropertiesElement sProperties = style .newStyleSectionPropertiesElement(); sProperties.setTextDontBalanceTextColumnsAttribute(false); sProperties.setStyleEditableAttribute(false); StyleColumnsElement columnEle = sProperties .newStyleColumnsElement(1); columnEle.setFoColumnGapAttribute("0in");
/** * 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; }
/** * Sets the value of ODFDOM attribute representation <code>StyleEditableAttribute</code> , See {@odf.attribute style:editable} * * @param styleEditableValue The type is <code>Boolean</code> */ public void setStyleEditableAttribute(Boolean styleEditableValue) { StyleEditableAttribute attr = new StyleEditableAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setBooleanValue(styleEditableValue.booleanValue()); }
StyleSectionPropertiesElement sProperties = style .newStyleSectionPropertiesElement(); sProperties.setTextDontBalanceTextColumnsAttribute(false); sProperties.setStyleEditableAttribute(false); StyleColumnsElement columnEle = sProperties .newStyleColumnsElement(1); columnEle.setFoColumnGapAttribute("0in");
/** * 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; }
/** * Receives the value of the ODFDOM attribute representation <code>TextDontBalanceTextColumnsAttribute</code> , See {@odf.attribute text:dont-balance-text-columns} * * @return - the <code>Boolean</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public Boolean getTextDontBalanceTextColumnsAttribute() { TextDontBalanceTextColumnsAttribute attr = (TextDontBalanceTextColumnsAttribute) getOdfAttribute(OdfDocumentNamespace.TEXT, "dont-balance-text-columns"); if (attr != null) { return Boolean.valueOf(attr.booleanValue()); } return null; }