org.odftoolkit.odfdom.dom.element.style.StyleTablePropertiesElement Maven / Gradle / Ivy
Show all versions of odfdom-java Show documentation
/**
* **********************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
*
*
Copyright 2008, 2010 Oracle and/or its affiliates. All rights reserved.
*
*
Use is subject to license terms.
*
*
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0. You can also obtain a copy of the License at
* http://odftoolkit.org/docs/license.txt
*
*
Unless required by applicable law or agreed to in writing, software distributed under the
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied.
*
*
See the License for the specific language governing permissions and limitations under the
* License.
*
*
**********************************************************************
*/
/*
* This file is automatically generated.
* Don't edit manually.
*/
package org.odftoolkit.odfdom.dom.element.style;
import org.odftoolkit.odfdom.dom.DefaultElementVisitor;
import org.odftoolkit.odfdom.dom.OdfDocumentNamespace;
import org.odftoolkit.odfdom.dom.attribute.fo.FoBackgroundColorAttribute;
import org.odftoolkit.odfdom.dom.attribute.fo.FoBreakAfterAttribute;
import org.odftoolkit.odfdom.dom.attribute.fo.FoBreakBeforeAttribute;
import org.odftoolkit.odfdom.dom.attribute.fo.FoKeepWithNextAttribute;
import org.odftoolkit.odfdom.dom.attribute.fo.FoMarginAttribute;
import org.odftoolkit.odfdom.dom.attribute.fo.FoMarginBottomAttribute;
import org.odftoolkit.odfdom.dom.attribute.fo.FoMarginLeftAttribute;
import org.odftoolkit.odfdom.dom.attribute.fo.FoMarginRightAttribute;
import org.odftoolkit.odfdom.dom.attribute.fo.FoMarginTopAttribute;
import org.odftoolkit.odfdom.dom.attribute.style.StyleMayBreakBetweenRowsAttribute;
import org.odftoolkit.odfdom.dom.attribute.style.StylePageNumberAttribute;
import org.odftoolkit.odfdom.dom.attribute.style.StyleRelWidthAttribute;
import org.odftoolkit.odfdom.dom.attribute.style.StyleShadowAttribute;
import org.odftoolkit.odfdom.dom.attribute.style.StyleWidthAttribute;
import org.odftoolkit.odfdom.dom.attribute.style.StyleWritingModeAttribute;
import org.odftoolkit.odfdom.dom.attribute.table.TableAlignAttribute;
import org.odftoolkit.odfdom.dom.attribute.table.TableBorderModelAttribute;
import org.odftoolkit.odfdom.dom.attribute.table.TableDisplayAttribute;
import org.odftoolkit.odfdom.dom.element.OdfStylePropertiesBase;
import org.odftoolkit.odfdom.dom.style.props.OdfStylePropertiesSet;
import org.odftoolkit.odfdom.dom.style.props.OdfStyleProperty;
import org.odftoolkit.odfdom.pkg.ElementVisitor;
import org.odftoolkit.odfdom.pkg.OdfFileDom;
import org.odftoolkit.odfdom.pkg.OdfName;
/** DOM implementation of OpenDocument element {@odf.element style:table-properties}. */
public class StyleTablePropertiesElement extends OdfStylePropertiesBase {
public static final OdfName ELEMENT_NAME =
OdfName.newName(OdfDocumentNamespace.STYLE, "table-properties");
/**
* Create the instance of StyleTablePropertiesElement
*
* @param ownerDoc The type is OdfFileDom
*/
public StyleTablePropertiesElement(OdfFileDom ownerDoc) {
super(ownerDoc, ELEMENT_NAME);
}
/**
* Get the element name
*
* @return return OdfName
the name of element {@odf.element style:table-properties}.
*/
public OdfName getOdfName() {
return ELEMENT_NAME;
}
public static final OdfStyleProperty BackgroundColor =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.FO, "background-color"));
public static final OdfStyleProperty BreakAfter =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.FO, "break-after"));
public static final OdfStyleProperty BreakBefore =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.FO, "break-before"));
public static final OdfStyleProperty KeepWithNext =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.FO, "keep-with-next"));
public static final OdfStyleProperty Margin =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.FO, "margin"));
public static final OdfStyleProperty MarginBottom =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.FO, "margin-bottom"));
public static final OdfStyleProperty MarginLeft =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.FO, "margin-left"));
public static final OdfStyleProperty MarginRight =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.FO, "margin-right"));
public static final OdfStyleProperty MarginTop =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.FO, "margin-top"));
public static final OdfStyleProperty MayBreakBetweenRows =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.STYLE, "may-break-between-rows"));
public static final OdfStyleProperty PageNumber =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.STYLE, "page-number"));
public static final OdfStyleProperty RelWidth =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.STYLE, "rel-width"));
public static final OdfStyleProperty Shadow =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.STYLE, "shadow"));
public static final OdfStyleProperty Width =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.STYLE, "width"));
public static final OdfStyleProperty WritingMode =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.STYLE, "writing-mode"));
public static final OdfStyleProperty Align =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.TABLE, "align"));
public static final OdfStyleProperty BorderModel =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.TABLE, "border-model"));
public static final OdfStyleProperty Display =
OdfStyleProperty.get(
OdfStylePropertiesSet.TableProperties,
OdfName.newName(OdfDocumentNamespace.TABLE, "display"));
/**
* Receives the value of the ODFDOM attribute representation FoBackgroundColorAttribute
*
, See {@odf.attribute fo:background-color}
*
* @return - the String
, the value or null
, 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 FoBackgroundColorAttribute
, See
* {@odf.attribute fo:background-color}
*
* @param foBackgroundColorValue The type is String
*/
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 FoBreakAfterAttribute
,
* See {@odf.attribute fo:break-after}
*
* @return - the String
, the value or null
, if the attribute is not set
* and no default value defined.
*/
public String getFoBreakAfterAttribute() {
FoBreakAfterAttribute attr =
(FoBreakAfterAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "break-after");
if (attr != null) {
return String.valueOf(attr.getValue());
}
return null;
}
/**
* Sets the value of ODFDOM attribute representation FoBreakAfterAttribute
, See
* {@odf.attribute fo:break-after}
*
* @param foBreakAfterValue The type is String
*/
public void setFoBreakAfterAttribute(String foBreakAfterValue) {
FoBreakAfterAttribute attr = new FoBreakAfterAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setValue(foBreakAfterValue);
}
/**
* Receives the value of the ODFDOM attribute representation FoBreakBeforeAttribute
,
* See {@odf.attribute fo:break-before}
*
* @return - the String
, the value or null
, 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 FoBreakBeforeAttribute
, See
* {@odf.attribute fo:break-before}
*
* @param foBreakBeforeValue The type is String
*/
public void setFoBreakBeforeAttribute(String foBreakBeforeValue) {
FoBreakBeforeAttribute attr = new FoBreakBeforeAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setValue(foBreakBeforeValue);
}
/**
* Receives the value of the ODFDOM attribute representation FoKeepWithNextAttribute
* , See {@odf.attribute fo:keep-with-next}
*
* @return - the String
, the value or null
, if the attribute is not set
* and no default value defined.
*/
public String getFoKeepWithNextAttribute() {
FoKeepWithNextAttribute attr =
(FoKeepWithNextAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "keep-with-next");
if (attr != null) {
return String.valueOf(attr.getValue());
}
return null;
}
/**
* Sets the value of ODFDOM attribute representation FoKeepWithNextAttribute
, See
* {@odf.attribute fo:keep-with-next}
*
* @param foKeepWithNextValue The type is String
*/
public void setFoKeepWithNextAttribute(String foKeepWithNextValue) {
FoKeepWithNextAttribute attr = new FoKeepWithNextAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setValue(foKeepWithNextValue);
}
/**
* Receives the value of the ODFDOM attribute representation FoMarginAttribute
, See
* {@odf.attribute fo:margin}
*
* @return - the String
, the value or null
, 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;
}
/**
* Sets the value of ODFDOM attribute representation FoMarginAttribute
, See
* {@odf.attribute fo:margin}
*
* @param foMarginValue The type is String
*/
public void setFoMarginAttribute(String foMarginValue) {
FoMarginAttribute attr = new FoMarginAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setValue(foMarginValue);
}
/**
* Receives the value of the ODFDOM attribute representation FoMarginBottomAttribute
* , See {@odf.attribute fo:margin-bottom}
*
* @return - the String
, the value or null
, 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;
}
/**
* Sets the value of ODFDOM attribute representation FoMarginBottomAttribute
, See
* {@odf.attribute fo:margin-bottom}
*
* @param foMarginBottomValue The type is String
*/
public void setFoMarginBottomAttribute(String foMarginBottomValue) {
FoMarginBottomAttribute attr = new FoMarginBottomAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setValue(foMarginBottomValue);
}
/**
* Receives the value of the ODFDOM attribute representation FoMarginLeftAttribute
,
* See {@odf.attribute fo:margin-left}
*
* @return - the String
, the value or null
, 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 FoMarginLeftAttribute
, See
* {@odf.attribute fo:margin-left}
*
* @param foMarginLeftValue The type is String
*/
public void setFoMarginLeftAttribute(String foMarginLeftValue) {
FoMarginLeftAttribute attr = new FoMarginLeftAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setValue(foMarginLeftValue);
}
/**
* Receives the value of the ODFDOM attribute representation FoMarginRightAttribute
,
* See {@odf.attribute fo:margin-right}
*
* @return - the String
, the value or null
, 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 FoMarginRightAttribute
, See
* {@odf.attribute fo:margin-right}
*
* @param foMarginRightValue The type is String
*/
public void setFoMarginRightAttribute(String foMarginRightValue) {
FoMarginRightAttribute attr = new FoMarginRightAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setValue(foMarginRightValue);
}
/**
* Receives the value of the ODFDOM attribute representation FoMarginTopAttribute
,
* See {@odf.attribute fo:margin-top}
*
* @return - the String
, the value or null
, 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;
}
/**
* Sets the value of ODFDOM attribute representation FoMarginTopAttribute
, See
* {@odf.attribute fo:margin-top}
*
* @param foMarginTopValue The type is String
*/
public void setFoMarginTopAttribute(String foMarginTopValue) {
FoMarginTopAttribute attr = new FoMarginTopAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setValue(foMarginTopValue);
}
/**
* Receives the value of the ODFDOM attribute representation
* StyleMayBreakBetweenRowsAttribute
, See {@odf.attribute style:may-break-between-rows}
*
* @return - the Boolean
, the value or null
, 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 && !attr.getValue().isEmpty()) {
return Boolean.valueOf(attr.booleanValue());
}
return null;
}
/**
* Sets the value of ODFDOM attribute representation StyleMayBreakBetweenRowsAttribute
*
, See {@odf.attribute style:may-break-between-rows}
*
* @param styleMayBreakBetweenRowsValue The type is Boolean
*/
public void setStyleMayBreakBetweenRowsAttribute(Boolean styleMayBreakBetweenRowsValue) {
StyleMayBreakBetweenRowsAttribute attr =
new StyleMayBreakBetweenRowsAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setBooleanValue(styleMayBreakBetweenRowsValue.booleanValue());
}
/**
* Receives the value of the ODFDOM attribute representation StylePageNumberAttribute
* , See {@odf.attribute style:page-number}
*
* @return - the Integer
, the value or null
, 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 && !attr.getValue().isEmpty()) {
return Integer.valueOf(attr.intValue());
}
return null;
}
/**
* Sets the value of ODFDOM attribute representation StylePageNumberAttribute
, See
* {@odf.attribute style:page-number}
*
* @param stylePageNumberValue The type is Integer
*/
public void setStylePageNumberAttribute(Integer stylePageNumberValue) {
StylePageNumberAttribute attr = new StylePageNumberAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setIntValue(stylePageNumberValue.intValue());
}
/**
* Receives the value of the ODFDOM attribute representation StyleRelWidthAttribute
,
* See {@odf.attribute style:rel-width}
*
* @return - the String
, the value or null
, if the attribute is not set
* and no default value defined.
*/
public String getStyleRelWidthAttribute() {
StyleRelWidthAttribute attr =
(StyleRelWidthAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "rel-width");
if (attr != null) {
return String.valueOf(attr.getValue());
}
return null;
}
/**
* Sets the value of ODFDOM attribute representation StyleRelWidthAttribute
, See
* {@odf.attribute style:rel-width}
*
* @param styleRelWidthValue The type is String
*/
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 StyleShadowAttribute
,
* See {@odf.attribute style:shadow}
*
* @return - the String
, the value or null
, if the attribute is not set
* and no default value defined.
*/
public String getStyleShadowAttribute() {
StyleShadowAttribute attr =
(StyleShadowAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "shadow");
if (attr != null) {
return String.valueOf(attr.getValue());
}
return null;
}
/**
* Sets the value of ODFDOM attribute representation StyleShadowAttribute
, See
* {@odf.attribute style:shadow}
*
* @param styleShadowValue The type is String
*/
public void setStyleShadowAttribute(String styleShadowValue) {
StyleShadowAttribute attr = new StyleShadowAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setValue(styleShadowValue);
}
/**
* Receives the value of the ODFDOM attribute representation StyleWidthAttribute
,
* See {@odf.attribute style:width}
*
* @return - the String
, the value or null
, if the attribute is not set
* and no default value defined.
*/
public String getStyleWidthAttribute() {
StyleWidthAttribute attr =
(StyleWidthAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "width");
if (attr != null) {
return String.valueOf(attr.getValue());
}
return null;
}
/**
* Sets the value of ODFDOM attribute representation StyleWidthAttribute
, See
* {@odf.attribute style:width}
*
* @param styleWidthValue The type is String
*/
public void setStyleWidthAttribute(String styleWidthValue) {
StyleWidthAttribute attr = new StyleWidthAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setValue(styleWidthValue);
}
/**
* Receives the value of the ODFDOM attribute representation StyleWritingModeAttribute
*
, See {@odf.attribute style:writing-mode}
*
* @return - the String
, the value or null
, if the attribute is not set
* and no default value defined.
*/
public String getStyleWritingModeAttribute() {
StyleWritingModeAttribute attr =
(StyleWritingModeAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "writing-mode");
if (attr != null) {
return String.valueOf(attr.getValue());
}
return null;
}
/**
* Sets the value of ODFDOM attribute representation StyleWritingModeAttribute
, See
* {@odf.attribute style:writing-mode}
*
* @param styleWritingModeValue The type is String
*/
public void setStyleWritingModeAttribute(String styleWritingModeValue) {
StyleWritingModeAttribute attr = new StyleWritingModeAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setValue(styleWritingModeValue);
}
/**
* Receives the value of the ODFDOM attribute representation TableAlignAttribute
,
* See {@odf.attribute table:align}
*
* @return - the String
, the value or null
, if the attribute is not set
* and no default value defined.
*/
public String getTableAlignAttribute() {
TableAlignAttribute attr =
(TableAlignAttribute) getOdfAttribute(OdfDocumentNamespace.TABLE, "align");
if (attr != null) {
return String.valueOf(attr.getValue());
}
return null;
}
/**
* Sets the value of ODFDOM attribute representation TableAlignAttribute
, See
* {@odf.attribute table:align}
*
* @param tableAlignValue The type is String
*/
public void setTableAlignAttribute(String tableAlignValue) {
TableAlignAttribute attr = new TableAlignAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setValue(tableAlignValue);
}
/**
* Receives the value of the ODFDOM attribute representation TableBorderModelAttribute
*
, See {@odf.attribute table:border-model}
*
* @return - the String
, the value or null
, if the attribute is not set
* and no default value defined.
*/
public String getTableBorderModelAttribute() {
TableBorderModelAttribute attr =
(TableBorderModelAttribute) getOdfAttribute(OdfDocumentNamespace.TABLE, "border-model");
if (attr != null) {
return String.valueOf(attr.getValue());
}
return null;
}
/**
* Sets the value of ODFDOM attribute representation TableBorderModelAttribute
, See
* {@odf.attribute table:border-model}
*
* @param tableBorderModelValue The type is String
*/
public void setTableBorderModelAttribute(String tableBorderModelValue) {
TableBorderModelAttribute attr = new TableBorderModelAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setValue(tableBorderModelValue);
}
/**
* Receives the value of the ODFDOM attribute representation TableDisplayAttribute
,
* See {@odf.attribute table:display}
*
* @return - the Boolean
, the value or null
, if the attribute is not
* set and no default value defined.
*/
public Boolean getTableDisplayAttribute() {
TableDisplayAttribute attr =
(TableDisplayAttribute) getOdfAttribute(OdfDocumentNamespace.TABLE, "display");
if (attr != null && !attr.getValue().isEmpty()) {
return Boolean.valueOf(attr.booleanValue());
}
return null;
}
/**
* Sets the value of ODFDOM attribute representation TableDisplayAttribute
, See
* {@odf.attribute table:display}
*
* @param tableDisplayValue The type is Boolean
*/
public void setTableDisplayAttribute(Boolean tableDisplayValue) {
TableDisplayAttribute attr = new TableDisplayAttribute((OdfFileDom) this.ownerDocument);
setOdfAttribute(attr);
attr.setBooleanValue(tableDisplayValue.booleanValue());
}
/**
* Create child element {@odf.element style:background-image}.
*
*
Child element was added 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;
}
/**
* Accept an visitor instance to allow the visitor to do some operations. Refer to visitor design
* pattern to get a better understanding.
*
* @param visitor an instance of DefaultElementVisitor
*/
@Override
public void accept(ElementVisitor visitor) {
if (visitor instanceof DefaultElementVisitor) {
DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;
defaultVisitor.visit(this);
} else {
visitor.visit(this);
}
}
}