/** * Receives the value of the ODFDOM attribute representation <code>FoStartIndentAttribute</code> , See {@odf.attribute fo:start-indent} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoStartIndentAttribute() { FoStartIndentAttribute attr = (FoStartIndentAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "start-indent"); if (attr != null) { return String.valueOf(attr.getValue()); } return FoStartIndentAttribute.DEFAULT_VALUE; }
@Override public void visit( StyleColumnElement ele ) { if ( currentColumnPropertiesList == null ) { return; } StyleColumnProperties columnProperties = new StyleColumnProperties(); currentColumnPropertiesList.add( columnProperties ); // rel-width String relWidth = ele.getStyleRelWidthAttribute(); if ( StringUtils.isNotEmpty( relWidth ) ) { columnProperties.setRelWidth( ODFUtils.getRelativeSize( relWidth ) ); } // start-indent String startIndent = ele.getFoStartIndentAttribute(); if ( StringUtils.isNotEmpty( startIndent ) ) { columnProperties.setStartIndent( ODFUtils.getDimensionAsPoint( startIndent ) ); } // end-indent String endIndent = ele.getFoEndIndentAttribute(); if ( StringUtils.isNotEmpty( endIndent ) ) { columnProperties.setEndIndent( ODFUtils.getDimensionAsPoint( endIndent ) ); } super.visit( ele ); }
/** * Sets the value of ODFDOM attribute representation <code>FoStartIndentAttribute</code> , See {@odf.attribute fo:start-indent} * * @param foStartIndentValue The type is <code>String</code> */ public void setFoStartIndentAttribute(String foStartIndentValue) { FoStartIndentAttribute attr = new FoStartIndentAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(foStartIndentValue); }
/** * Create child element {@odf.element style:column}. * * @param styleRelWidthValue the <code>String</code> value of <code>StyleRelWidthAttribute</code>, see {@odf.attribute style:rel-width} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element style:column} */ public StyleColumnElement newStyleColumnElement(String styleRelWidthValue) { StyleColumnElement styleColumn = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleColumnElement.class); styleColumn.setStyleRelWidthAttribute(styleRelWidthValue); this.appendChild(styleColumn); return styleColumn; }
@Override public void visit( StyleColumnElement ele ) { if ( currentColumnPropertiesList == null ) { return; } StyleColumnProperties columnProperties = new StyleColumnProperties(); currentColumnPropertiesList.add( columnProperties ); // rel-width String relWidth = ele.getStyleRelWidthAttribute(); if ( StringUtils.isNotEmpty( relWidth ) ) { columnProperties.setRelWidth( ODFUtils.getRelativeSize( relWidth ) ); } // start-indent String startIndent = ele.getFoStartIndentAttribute(); if ( StringUtils.isNotEmpty( startIndent ) ) { columnProperties.setStartIndent( ODFUtils.getDimensionAsPoint( startIndent ) ); } // end-indent String endIndent = ele.getFoEndIndentAttribute(); if ( StringUtils.isNotEmpty( endIndent ) ) { columnProperties.setEndIndent( ODFUtils.getDimensionAsPoint( endIndent ) ); } super.visit( ele ); }
/** * Sets the value of ODFDOM attribute representation <code>FoEndIndentAttribute</code> , See {@odf.attribute fo:end-indent} * * @param foEndIndentValue The type is <code>String</code> */ public void setFoEndIndentAttribute(String foEndIndentValue) { FoEndIndentAttribute attr = new FoEndIndentAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(foEndIndentValue); }
/** * Create child element {@odf.element style:column}. * * @param styleRelWidthValue the <code>String</code> value of <code>StyleRelWidthAttribute</code>, see {@odf.attribute style:rel-width} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element style:column} */ public StyleColumnElement newStyleColumnElement(String styleRelWidthValue) { StyleColumnElement styleColumn = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleColumnElement.class); styleColumn.setStyleRelWidthAttribute(styleRelWidthValue); this.appendChild(styleColumn); return styleColumn; }
/** * Sets the value of ODFDOM attribute representation <code>FoSpaceAfterAttribute</code> , See {@odf.attribute fo:space-after} * * @param foSpaceAfterValue The type is <code>String</code> */ public void setFoSpaceAfterAttribute(String foSpaceAfterValue) { FoSpaceAfterAttribute attr = new FoSpaceAfterAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(foSpaceAfterValue); }
/** * Receives the value of the ODFDOM attribute representation <code>FoEndIndentAttribute</code> , See {@odf.attribute fo:end-indent} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoEndIndentAttribute() { FoEndIndentAttribute attr = (FoEndIndentAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "end-indent"); if (attr != null) { return String.valueOf(attr.getValue()); } return FoEndIndentAttribute.DEFAULT_VALUE; }
/** * Create child element {@odf.element style:column}. * * @param styleRelWidthValue the <code>String</code> value of <code>StyleRelWidthAttribute</code>, see {@odf.attribute style:rel-width} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element style:column} */ public StyleColumnElement newStyleColumnElement(String styleRelWidthValue) { StyleColumnElement styleColumn = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleColumnElement.class); styleColumn.setStyleRelWidthAttribute(styleRelWidthValue); this.appendChild(styleColumn); return styleColumn; }
/** * Sets the value of ODFDOM attribute representation <code>StyleRelWidthAttribute</code> , See {@odf.attribute style:rel-width} * * @param styleRelWidthValue The type is <code>String</code> */ public void setStyleRelWidthAttribute(String styleRelWidthValue) { StyleRelWidthAttribute attr = new StyleRelWidthAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(styleRelWidthValue); }
/** * Receives the value of the ODFDOM attribute representation <code>FoStartIndentAttribute</code> , See {@odf.attribute fo:start-indent} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoStartIndentAttribute() { FoStartIndentAttribute attr = (FoStartIndentAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "start-indent"); if (attr != null) { return String.valueOf(attr.getValue()); } return FoStartIndentAttribute.DEFAULT_VALUE; }
/** * Sets the value of ODFDOM attribute representation <code>StyleRelWidthAttribute</code> , See {@odf.attribute style:rel-width} * * @param styleRelWidthValue The type is <code>String</code> */ public void setStyleRelWidthAttribute(String styleRelWidthValue) { StyleRelWidthAttribute attr = new StyleRelWidthAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(styleRelWidthValue); }
/** * Receives the value of the ODFDOM attribute representation <code>FoSpaceAfterAttribute</code> , See {@odf.attribute fo:space-after} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoSpaceAfterAttribute() { FoSpaceAfterAttribute attr = (FoSpaceAfterAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "space-after"); if (attr != null) { return String.valueOf(attr.getValue()); } return FoSpaceAfterAttribute.DEFAULT_VALUE; }
/** * Sets the value of ODFDOM attribute representation <code>FoStartIndentAttribute</code> , See {@odf.attribute fo:start-indent} * * @param foStartIndentValue The type is <code>String</code> */ public void setFoStartIndentAttribute(String foStartIndentValue) { FoStartIndentAttribute attr = new FoStartIndentAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(foStartIndentValue); }
/** * Receives the value of the ODFDOM attribute representation <code>FoEndIndentAttribute</code> , See {@odf.attribute fo:end-indent} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoEndIndentAttribute() { FoEndIndentAttribute attr = (FoEndIndentAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "end-indent"); if (attr != null) { return String.valueOf(attr.getValue()); } return FoEndIndentAttribute.DEFAULT_VALUE; }
/** * Sets the value of ODFDOM attribute representation <code>StyleRelWidthAttribute</code> , See {@odf.attribute style:rel-width} * * @param styleRelWidthValue The type is <code>String</code> */ public void setStyleRelWidthAttribute(String styleRelWidthValue) { StyleRelWidthAttribute attr = new StyleRelWidthAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(styleRelWidthValue); }
/** * Receives the value of the ODFDOM attribute representation <code>FoSpaceAfterAttribute</code> , See {@odf.attribute fo:space-after} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoSpaceAfterAttribute() { FoSpaceAfterAttribute attr = (FoSpaceAfterAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "space-after"); if (attr != null) { return String.valueOf(attr.getValue()); } return FoSpaceAfterAttribute.DEFAULT_VALUE; }
/** * Sets the value of ODFDOM attribute representation <code>FoSpaceAfterAttribute</code> , See {@odf.attribute fo:space-after} * * @param foSpaceAfterValue The type is <code>String</code> */ public void setFoSpaceAfterAttribute(String foSpaceAfterValue) { FoSpaceAfterAttribute attr = new FoSpaceAfterAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(foSpaceAfterValue); }
/** * Receives the value of the ODFDOM attribute representation <code>FoEndIndentAttribute</code> , See {@odf.attribute fo:end-indent} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoEndIndentAttribute() { FoEndIndentAttribute attr = (FoEndIndentAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "end-indent"); if (attr != null) { return String.valueOf(attr.getValue()); } return FoEndIndentAttribute.DEFAULT_VALUE; }