/** * Receives the value of the ODFDOM attribute representation <code>FoWidthAttribute</code> , See {@odf.attribute fo:width} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoWidthAttribute() { FoWidthAttribute attr = (FoWidthAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "width"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
StyleListLevelPropertiesElement styleListLevelPropertiesElement = listLevelElement .newStyleListLevelPropertiesElement(); styleListLevelPropertiesElement.setTextListLevelPositionAndSpaceModeAttribute("label-alignment"); styleListLevelPropertiesElement.setStyleVerticalPosAttribute("middle"); styleListLevelPropertiesElement.setStyleVerticalRelAttribute("line"); styleListLevelPropertiesElement.setFoWidthAttribute(DEFAULT_IMAGE_WIDTH); styleListLevelPropertiesElement.setFoHeightAttribute(DEFAULT_IMAGE_HEIGHT); StyleListLevelLabelAlignmentElement styleListLevelLabelAlignmentElement = styleListLevelPropertiesElement .newStyleListLevelLabelAlignmentElement("listtab"); styleListLevelLabelAlignmentElement .setTextListTabStopPositionAttribute(DEFAULT_MARGIN_LEFT_ATTRIBUTES[i]);
/** * Sets the value of ODFDOM attribute representation <code>TextMinLabelDistanceAttribute</code> , See {@odf.attribute text:min-label-distance} * * @param textMinLabelDistanceValue The type is <code>String</code> */ public void setTextMinLabelDistanceAttribute(String textMinLabelDistanceValue) { TextMinLabelDistanceAttribute attr = new TextMinLabelDistanceAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(textMinLabelDistanceValue); }
String width = ele.getFoWidthAttribute(); if ( StringUtils.isNotEmpty( width ) ) String height = ele.getFoHeightAttribute(); if ( StringUtils.isNotEmpty( height ) ) String spaceBefore = ele.getTextSpaceBeforeAttribute(); if ( StringUtils.isNotEmpty( spaceBefore ) ) String minLabelWidth = ele.getTextMinLabelWidthAttribute(); if ( StringUtils.isNotEmpty( minLabelWidth ) )
/** * Create child element {@odf.element style:list-level-label-alignment}. * * @param textLabelFollowedByValue the <code>String</code> value of <code>TextLabelFollowedByAttribute</code>, see {@odf.attribute text:label-followed-by} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element style:list-level-label-alignment} */ public StyleListLevelLabelAlignmentElement newStyleListLevelLabelAlignmentElement(String textLabelFollowedByValue) { StyleListLevelLabelAlignmentElement styleListLevelLabelAlignment = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleListLevelLabelAlignmentElement.class); styleListLevelLabelAlignment.setTextLabelFollowedByAttribute(textLabelFollowedByValue); this.appendChild(styleListLevelLabelAlignment); return styleListLevelLabelAlignment; }
StyleListLevelPropertiesElement styleListLevelPropertiesElement = listLevelElement .newStyleListLevelPropertiesElement(); styleListLevelPropertiesElement.setTextListLevelPositionAndSpaceModeAttribute("label-alignment"); styleListLevelPropertiesElement.setStyleVerticalPosAttribute("middle"); styleListLevelPropertiesElement.setStyleVerticalRelAttribute("line"); styleListLevelPropertiesElement.setFoWidthAttribute(DEFAULT_IMAGE_WIDTH); styleListLevelPropertiesElement.setFoHeightAttribute(DEFAULT_IMAGE_HEIGHT); StyleListLevelLabelAlignmentElement styleListLevelLabelAlignmentElement = styleListLevelPropertiesElement .newStyleListLevelLabelAlignmentElement("listtab"); styleListLevelLabelAlignmentElement .setTextListTabStopPositionAttribute(DEFAULT_MARGIN_LEFT_ATTRIBUTES[i]);
/** * Sets the value of ODFDOM attribute representation <code>FoWidthAttribute</code> , See {@odf.attribute fo:width} * * @param foWidthValue The type is <code>String</code> */ public void setFoWidthAttribute(String foWidthValue) { FoWidthAttribute attr = new FoWidthAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(foWidthValue); }
String width = ele.getFoWidthAttribute(); if ( StringUtils.isNotEmpty( width ) ) String height = ele.getFoHeightAttribute(); if ( StringUtils.isNotEmpty( height ) ) String spaceBefore = ele.getTextSpaceBeforeAttribute(); if ( StringUtils.isNotEmpty( spaceBefore ) ) String minLabelWidth = ele.getTextMinLabelWidthAttribute(); if ( StringUtils.isNotEmpty( minLabelWidth ) )
/** * Create child element {@odf.element style:list-level-label-alignment}. * * @param textLabelFollowedByValue the <code>String</code> value of <code>TextLabelFollowedByAttribute</code>, see {@odf.attribute text:label-followed-by} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element style:list-level-label-alignment} */ public StyleListLevelLabelAlignmentElement newStyleListLevelLabelAlignmentElement(String textLabelFollowedByValue) { StyleListLevelLabelAlignmentElement styleListLevelLabelAlignment = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleListLevelLabelAlignmentElement.class); styleListLevelLabelAlignment.setTextLabelFollowedByAttribute(textLabelFollowedByValue); this.appendChild(styleListLevelLabelAlignment); return styleListLevelLabelAlignment; }
StyleListLevelPropertiesElement styleListLevelPropertiesElement = listLevelElement .newStyleListLevelPropertiesElement(); styleListLevelPropertiesElement.setTextListLevelPositionAndSpaceModeAttribute("label-alignment"); styleListLevelPropertiesElement.setStyleVerticalPosAttribute("middle"); styleListLevelPropertiesElement.setStyleVerticalRelAttribute("line"); styleListLevelPropertiesElement.setFoWidthAttribute(DEFAULT_IMAGE_WIDTH); styleListLevelPropertiesElement.setFoHeightAttribute(DEFAULT_IMAGE_HEIGHT); StyleListLevelLabelAlignmentElement styleListLevelLabelAlignmentElement = styleListLevelPropertiesElement .newStyleListLevelLabelAlignmentElement("listtab"); styleListLevelLabelAlignmentElement .setTextListTabStopPositionAttribute(DEFAULT_MARGIN_LEFT_ATTRIBUTES[i]);
/** * Sets the value of ODFDOM attribute representation <code>StyleFontNameAttribute</code> , See {@odf.attribute style:font-name} * * @param styleFontNameValue The type is <code>String</code> */ public void setStyleFontNameAttribute(String styleFontNameValue) { StyleFontNameAttribute attr = new StyleFontNameAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(styleFontNameValue); }
/** * Receives the value of the ODFDOM attribute representation <code>TextListLevelPositionAndSpaceModeAttribute</code> , See {@odf.attribute text:list-level-position-and-space-mode} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getTextListLevelPositionAndSpaceModeAttribute() { TextListLevelPositionAndSpaceModeAttribute attr = (TextListLevelPositionAndSpaceModeAttribute) getOdfAttribute(OdfDocumentNamespace.TEXT, "list-level-position-and-space-mode"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Create child element {@odf.element style:list-level-label-alignment}. * * @param textLabelFollowedByValue the <code>String</code> value of <code>TextLabelFollowedByAttribute</code>, see {@odf.attribute text:label-followed-by} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element style:list-level-label-alignment} */ public StyleListLevelLabelAlignmentElement newStyleListLevelLabelAlignmentElement(String textLabelFollowedByValue) { StyleListLevelLabelAlignmentElement styleListLevelLabelAlignment = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleListLevelLabelAlignmentElement.class); styleListLevelLabelAlignment.setTextLabelFollowedByAttribute(textLabelFollowedByValue); this.appendChild(styleListLevelLabelAlignment); return styleListLevelLabelAlignment; }
/** * Sets the value of ODFDOM attribute representation <code>StyleVerticalPosAttribute</code> , See {@odf.attribute style:vertical-pos} * * @param styleVerticalPosValue The type is <code>String</code> */ public void setStyleVerticalPosAttribute(String styleVerticalPosValue) { StyleVerticalPosAttribute attr = new StyleVerticalPosAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(styleVerticalPosValue); }
/** * Receives the value of the ODFDOM attribute representation <code>StyleFontNameAttribute</code> , See {@odf.attribute style:font-name} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getStyleFontNameAttribute() { StyleFontNameAttribute attr = (StyleFontNameAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "font-name"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Sets the value of ODFDOM attribute representation <code>StyleVerticalRelAttribute</code> , See {@odf.attribute style:vertical-rel} * * @param styleVerticalRelValue The type is <code>String</code> */ public void setStyleVerticalRelAttribute(String styleVerticalRelValue) { StyleVerticalRelAttribute attr = new StyleVerticalRelAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(styleVerticalRelValue); }
/** * Receives the value of the ODFDOM attribute representation <code>StyleVerticalPosAttribute</code> , See {@odf.attribute style:vertical-pos} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getStyleVerticalPosAttribute() { StyleVerticalPosAttribute attr = (StyleVerticalPosAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "vertical-pos"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Sets the value of ODFDOM attribute representation <code>TextMinLabelWidthAttribute</code> , See {@odf.attribute text:min-label-width} * * @param textMinLabelWidthValue The type is <code>String</code> */ public void setTextMinLabelWidthAttribute(String textMinLabelWidthValue) { TextMinLabelWidthAttribute attr = new TextMinLabelWidthAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(textMinLabelWidthValue); }
/** * Receives the value of the ODFDOM attribute representation <code>StyleVerticalRelAttribute</code> , See {@odf.attribute style:vertical-rel} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getStyleVerticalRelAttribute() { StyleVerticalRelAttribute attr = (StyleVerticalRelAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "vertical-rel"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Sets the value of ODFDOM attribute representation <code>FoTextAlignAttribute</code> , See {@odf.attribute fo:text-align} * * @param foTextAlignValue The type is <code>String</code> */ public void setFoTextAlignAttribute(String foTextAlignValue) { FoTextAlignAttribute attr = new FoTextAlignAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(foTextAlignValue); }