org.odftoolkit.odfdom.dom.element.style
Class StyleTablePropertiesElement

java.lang.Object
  extended by org.apache.xerces.dom.NodeImpl
      extended by org.apache.xerces.dom.ChildNode
          extended by org.apache.xerces.dom.ParentNode
              extended by org.apache.xerces.dom.ElementImpl
                  extended by org.apache.xerces.dom.ElementNSImpl
                      extended by org.odftoolkit.odfdom.pkg.OdfElement
                          extended by org.odftoolkit.odfdom.dom.element.OdfStylePropertiesBase
                              extended by org.odftoolkit.odfdom.dom.element.style.StyleTablePropertiesElement
All Implemented Interfaces:
Serializable, Cloneable, Element, EventTarget, Node, NodeList, TypeInfo

public class StyleTablePropertiesElement
extends OdfStylePropertiesBase

DOM implementation of OpenDocument element style:table-properties.

See Also:
Serialized Form

Field Summary
static OdfStyleProperty Align
           
static OdfStyleProperty BackgroundColor
           
static OdfStyleProperty BorderModel
           
static OdfStyleProperty BreakAfter
           
static OdfStyleProperty BreakBefore
           
static OdfStyleProperty Display
           
static OdfName ELEMENT_NAME
           
static OdfStyleProperty KeepWithNext
           
static OdfStyleProperty Margin
           
static OdfStyleProperty MarginBottom
           
static OdfStyleProperty MarginLeft
           
static OdfStyleProperty MarginRight
           
static OdfStyleProperty MarginTop
           
static OdfStyleProperty MayBreakBetweenRows
           
static OdfStyleProperty PageNumber
           
static OdfStyleProperty RelWidth
           
static OdfStyleProperty Shadow
           
static OdfStyleProperty Width
           
static OdfStyleProperty WritingMode
           
 
Fields inherited from class org.apache.xerces.dom.ElementNSImpl
localName, namespaceURI
 
Fields inherited from class org.apache.xerces.dom.ElementImpl
attributes, name
 
Fields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocument
 
Fields inherited from class org.apache.xerces.dom.ChildNode
nextSibling, previousSibling
 
Fields inherited from class org.apache.xerces.dom.NodeImpl
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
 
Constructor Summary
StyleTablePropertiesElement(OdfFileDom ownerDoc)
          Create the instance of StyleTablePropertiesElement
 
Method Summary
 void accept(ElementVisitor visitor)
          Accept an visitor instance to allow the visitor to do some operations.
 String getFoBackgroundColorAttribute()
          Receives the value of the ODFDOM attribute representation FoBackgroundColorAttribute , See fo:background-color
 String getFoBreakAfterAttribute()
          Receives the value of the ODFDOM attribute representation FoBreakAfterAttribute , See fo:break-after
 String getFoBreakBeforeAttribute()
          Receives the value of the ODFDOM attribute representation FoBreakBeforeAttribute , See fo:break-before
 String getFoKeepWithNextAttribute()
          Receives the value of the ODFDOM attribute representation FoKeepWithNextAttribute , See fo:keep-with-next
 String getFoMarginAttribute()
          Receives the value of the ODFDOM attribute representation FoMarginAttribute , See fo:margin
 String getFoMarginBottomAttribute()
          Receives the value of the ODFDOM attribute representation FoMarginBottomAttribute , See fo:margin-bottom
 String getFoMarginLeftAttribute()
          Receives the value of the ODFDOM attribute representation FoMarginLeftAttribute , See fo:margin-left
 String getFoMarginRightAttribute()
          Receives the value of the ODFDOM attribute representation FoMarginRightAttribute , See fo:margin-right
 String getFoMarginTopAttribute()
          Receives the value of the ODFDOM attribute representation FoMarginTopAttribute , See fo:margin-top
 OdfName getOdfName()
          Get the element name
 Boolean getStyleMayBreakBetweenRowsAttribute()
          Receives the value of the ODFDOM attribute representation StyleMayBreakBetweenRowsAttribute , See style:may-break-between-rows
 Integer getStylePageNumberAttribute()
          Receives the value of the ODFDOM attribute representation StylePageNumberAttribute , See style:page-number
 String getStyleRelWidthAttribute()
          Receives the value of the ODFDOM attribute representation StyleRelWidthAttribute , See style:rel-width
 String getStyleShadowAttribute()
          Receives the value of the ODFDOM attribute representation StyleShadowAttribute , See style:shadow
 String getStyleWidthAttribute()
          Receives the value of the ODFDOM attribute representation StyleWidthAttribute , See style:width
 String getStyleWritingModeAttribute()
          Receives the value of the ODFDOM attribute representation StyleWritingModeAttribute , See style:writing-mode
 String getTableAlignAttribute()
          Receives the value of the ODFDOM attribute representation TableAlignAttribute , See table:align
 String getTableBorderModelAttribute()
          Receives the value of the ODFDOM attribute representation TableBorderModelAttribute , See table:border-model
 Boolean getTableDisplayAttribute()
          Receives the value of the ODFDOM attribute representation TableDisplayAttribute , See table:display
 StyleBackgroundImageElement newStyleBackgroundImageElement()
          Create child element style:background-image.
 void setFoBackgroundColorAttribute(String foBackgroundColorValue)
          Sets the value of ODFDOM attribute representation FoBackgroundColorAttribute , See fo:background-color
 void setFoBreakAfterAttribute(String foBreakAfterValue)
          Sets the value of ODFDOM attribute representation FoBreakAfterAttribute , See fo:break-after
 void setFoBreakBeforeAttribute(String foBreakBeforeValue)
          Sets the value of ODFDOM attribute representation FoBreakBeforeAttribute , See fo:break-before
 void setFoKeepWithNextAttribute(String foKeepWithNextValue)
          Sets the value of ODFDOM attribute representation FoKeepWithNextAttribute , See fo:keep-with-next
 void setFoMarginAttribute(String foMarginValue)
          Sets the value of ODFDOM attribute representation FoMarginAttribute , See fo:margin
 void setFoMarginBottomAttribute(String foMarginBottomValue)
          Sets the value of ODFDOM attribute representation FoMarginBottomAttribute , See fo:margin-bottom
 void setFoMarginLeftAttribute(String foMarginLeftValue)
          Sets the value of ODFDOM attribute representation FoMarginLeftAttribute , See fo:margin-left
 void setFoMarginRightAttribute(String foMarginRightValue)
          Sets the value of ODFDOM attribute representation FoMarginRightAttribute , See fo:margin-right
 void setFoMarginTopAttribute(String foMarginTopValue)
          Sets the value of ODFDOM attribute representation FoMarginTopAttribute , See fo:margin-top
 void setStyleMayBreakBetweenRowsAttribute(Boolean styleMayBreakBetweenRowsValue)
          Sets the value of ODFDOM attribute representation StyleMayBreakBetweenRowsAttribute , See style:may-break-between-rows
 void setStylePageNumberAttribute(Integer stylePageNumberValue)
          Sets the value of ODFDOM attribute representation StylePageNumberAttribute , See style:page-number
 void setStyleRelWidthAttribute(String styleRelWidthValue)
          Sets the value of ODFDOM attribute representation StyleRelWidthAttribute , See style:rel-width
 void setStyleShadowAttribute(String styleShadowValue)
          Sets the value of ODFDOM attribute representation StyleShadowAttribute , See style:shadow
 void setStyleWidthAttribute(String styleWidthValue)
          Sets the value of ODFDOM attribute representation StyleWidthAttribute , See style:width
 void setStyleWritingModeAttribute(String styleWritingModeValue)
          Sets the value of ODFDOM attribute representation StyleWritingModeAttribute , See style:writing-mode
 void setTableAlignAttribute(String tableAlignValue)
          Sets the value of ODFDOM attribute representation TableAlignAttribute , See table:align
 void setTableBorderModelAttribute(String tableBorderModelValue)
          Sets the value of ODFDOM attribute representation TableBorderModelAttribute , See table:border-model
 void setTableDisplayAttribute(Boolean tableDisplayValue)
          Sets the value of ODFDOM attribute representation TableDisplayAttribute , See table:display
 
Methods inherited from class org.odftoolkit.odfdom.dom.element.OdfStylePropertiesBase
hashCode
 
Methods inherited from class org.odftoolkit.odfdom.pkg.OdfElement
cloneNode, equals, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getOdfAttribute, getOdfAttribute, getOdfAttributeValue, getParentAs, hasOdfAttribute, insertBefore, onInsertNode, onInsertNode, onRemoveNode, onRemoveNode, removeChild, replaceChild, setOdfAttribute, setOdfAttributeValue, toString
 
Methods inherited from class org.apache.xerces.dom.ElementNSImpl
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setPrefix, setType, setValues
 
Methods inherited from class org.apache.xerces.dom.ElementImpl
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
 
Methods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren
 
Methods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSibling
 
Methods inherited from class org.apache.xerces.dom.NodeImpl
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, compareDocumentPosition, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setNodeValue, setTextContent, setUserData
 

Field Detail

ELEMENT_NAME

public static final OdfName ELEMENT_NAME

BackgroundColor

public static final OdfStyleProperty BackgroundColor

BreakAfter

public static final OdfStyleProperty BreakAfter

BreakBefore

public static final OdfStyleProperty BreakBefore

KeepWithNext

public static final OdfStyleProperty KeepWithNext

Margin

public static final OdfStyleProperty Margin

MarginBottom

public static final OdfStyleProperty MarginBottom

MarginLeft

public static final OdfStyleProperty MarginLeft

MarginRight

public static final OdfStyleProperty MarginRight

MarginTop

public static final OdfStyleProperty MarginTop

MayBreakBetweenRows

public static final OdfStyleProperty MayBreakBetweenRows

PageNumber

public static final OdfStyleProperty PageNumber

RelWidth

public static final OdfStyleProperty RelWidth

Shadow

public static final OdfStyleProperty Shadow

Width

public static final OdfStyleProperty Width

WritingMode

public static final OdfStyleProperty WritingMode

Align

public static final OdfStyleProperty Align

BorderModel

public static final OdfStyleProperty BorderModel

Display

public static final OdfStyleProperty Display
Constructor Detail

StyleTablePropertiesElement

public StyleTablePropertiesElement(OdfFileDom ownerDoc)
Create the instance of StyleTablePropertiesElement

Parameters:
ownerDoc - The type is OdfFileDom
Method Detail

getOdfName

public OdfName getOdfName()
Get the element name

Specified by:
getOdfName in class OdfElement
Returns:
return OdfName the name of element style:table-properties.

getFoBackgroundColorAttribute

public String getFoBackgroundColorAttribute()
Receives the value of the ODFDOM attribute representation FoBackgroundColorAttribute , See fo:background-color

Returns:
- the String , the value or null, if the attribute is not set and no default value defined.

setFoBackgroundColorAttribute

public void setFoBackgroundColorAttribute(String foBackgroundColorValue)
Sets the value of ODFDOM attribute representation FoBackgroundColorAttribute , See fo:background-color

Parameters:
foBackgroundColorValue - The type is String

getFoBreakAfterAttribute

public String getFoBreakAfterAttribute()
Receives the value of the ODFDOM attribute representation FoBreakAfterAttribute , See fo:break-after

Returns:
- the String , the value or null, if the attribute is not set and no default value defined.

setFoBreakAfterAttribute

public void setFoBreakAfterAttribute(String foBreakAfterValue)
Sets the value of ODFDOM attribute representation FoBreakAfterAttribute , See fo:break-after

Parameters:
foBreakAfterValue - The type is String

getFoBreakBeforeAttribute

public String getFoBreakBeforeAttribute()
Receives the value of the ODFDOM attribute representation FoBreakBeforeAttribute , See fo:break-before

Returns:
- the String , the value or null, if the attribute is not set and no default value defined.

setFoBreakBeforeAttribute

public void setFoBreakBeforeAttribute(String foBreakBeforeValue)
Sets the value of ODFDOM attribute representation FoBreakBeforeAttribute , See fo:break-before

Parameters:
foBreakBeforeValue - The type is String

getFoKeepWithNextAttribute

public String getFoKeepWithNextAttribute()
Receives the value of the ODFDOM attribute representation FoKeepWithNextAttribute , See fo:keep-with-next

Returns:
- the String , the value or null, if the attribute is not set and no default value defined.

setFoKeepWithNextAttribute

public void setFoKeepWithNextAttribute(String foKeepWithNextValue)
Sets the value of ODFDOM attribute representation FoKeepWithNextAttribute , See fo:keep-with-next

Parameters:
foKeepWithNextValue - The type is String

getFoMarginAttribute

public String getFoMarginAttribute()
Receives the value of the ODFDOM attribute representation FoMarginAttribute , See fo:margin

Returns:
- the String , the value or null, if the attribute is not set and no default value defined.

setFoMarginAttribute

public void setFoMarginAttribute(String foMarginValue)
Sets the value of ODFDOM attribute representation FoMarginAttribute , See fo:margin

Parameters:
foMarginValue - The type is String

getFoMarginBottomAttribute

public String getFoMarginBottomAttribute()
Receives the value of the ODFDOM attribute representation FoMarginBottomAttribute , See fo:margin-bottom

Returns:
- the String , the value or null, if the attribute is not set and no default value defined.

setFoMarginBottomAttribute

public void setFoMarginBottomAttribute(String foMarginBottomValue)
Sets the value of ODFDOM attribute representation FoMarginBottomAttribute , See fo:margin-bottom

Parameters:
foMarginBottomValue - The type is String

getFoMarginLeftAttribute

public String getFoMarginLeftAttribute()
Receives the value of the ODFDOM attribute representation FoMarginLeftAttribute , See fo:margin-left

Returns:
- the String , the value or null, if the attribute is not set and no default value defined.

setFoMarginLeftAttribute

public void setFoMarginLeftAttribute(String foMarginLeftValue)
Sets the value of ODFDOM attribute representation FoMarginLeftAttribute , See fo:margin-left

Parameters:
foMarginLeftValue - The type is String

getFoMarginRightAttribute

public String getFoMarginRightAttribute()
Receives the value of the ODFDOM attribute representation FoMarginRightAttribute , See fo:margin-right

Returns:
- the String , the value or null, if the attribute is not set and no default value defined.

setFoMarginRightAttribute

public void setFoMarginRightAttribute(String foMarginRightValue)
Sets the value of ODFDOM attribute representation FoMarginRightAttribute , See fo:margin-right

Parameters:
foMarginRightValue - The type is String

getFoMarginTopAttribute

public String getFoMarginTopAttribute()
Receives the value of the ODFDOM attribute representation FoMarginTopAttribute , See fo:margin-top

Returns:
- the String , the value or null, if the attribute is not set and no default value defined.

setFoMarginTopAttribute

public void setFoMarginTopAttribute(String foMarginTopValue)
Sets the value of ODFDOM attribute representation FoMarginTopAttribute , See fo:margin-top

Parameters:
foMarginTopValue - The type is String

getStyleMayBreakBetweenRowsAttribute

public Boolean getStyleMayBreakBetweenRowsAttribute()
Receives the value of the ODFDOM attribute representation StyleMayBreakBetweenRowsAttribute , See style:may-break-between-rows

Returns:
- the Boolean , the value or null, if the attribute is not set and no default value defined.

setStyleMayBreakBetweenRowsAttribute

public void setStyleMayBreakBetweenRowsAttribute(Boolean styleMayBreakBetweenRowsValue)
Sets the value of ODFDOM attribute representation StyleMayBreakBetweenRowsAttribute , See style:may-break-between-rows

Parameters:
styleMayBreakBetweenRowsValue - The type is Boolean

getStylePageNumberAttribute

public Integer getStylePageNumberAttribute()
Receives the value of the ODFDOM attribute representation StylePageNumberAttribute , See style:page-number

Returns:
- the Integer , the value or null, if the attribute is not set and no default value defined.

setStylePageNumberAttribute

public void setStylePageNumberAttribute(Integer stylePageNumberValue)
Sets the value of ODFDOM attribute representation StylePageNumberAttribute , See style:page-number

Parameters:
stylePageNumberValue - The type is Integer

getStyleRelWidthAttribute

public String getStyleRelWidthAttribute()
Receives the value of the ODFDOM attribute representation StyleRelWidthAttribute , See style:rel-width

Returns:
- the String , the value or null, if the attribute is not set and no default value defined.

setStyleRelWidthAttribute

public void setStyleRelWidthAttribute(String styleRelWidthValue)
Sets the value of ODFDOM attribute representation StyleRelWidthAttribute , See style:rel-width

Parameters:
styleRelWidthValue - The type is String

getStyleShadowAttribute

public String getStyleShadowAttribute()
Receives the value of the ODFDOM attribute representation StyleShadowAttribute , See style:shadow

Returns:
- the String , the value or null, if the attribute is not set and no default value defined.

setStyleShadowAttribute

public void setStyleShadowAttribute(String styleShadowValue)
Sets the value of ODFDOM attribute representation StyleShadowAttribute , See style:shadow

Parameters:
styleShadowValue - The type is String

getStyleWidthAttribute

public String getStyleWidthAttribute()
Receives the value of the ODFDOM attribute representation StyleWidthAttribute , See style:width

Returns:
- the String , the value or null, if the attribute is not set and no default value defined.

setStyleWidthAttribute

public void setStyleWidthAttribute(String styleWidthValue)
Sets the value of ODFDOM attribute representation StyleWidthAttribute , See style:width

Parameters:
styleWidthValue - The type is String

getStyleWritingModeAttribute

public String getStyleWritingModeAttribute()
Receives the value of the ODFDOM attribute representation StyleWritingModeAttribute , See style:writing-mode

Returns:
- the String , the value or null, if the attribute is not set and no default value defined.

setStyleWritingModeAttribute

public void setStyleWritingModeAttribute(String styleWritingModeValue)
Sets the value of ODFDOM attribute representation StyleWritingModeAttribute , See style:writing-mode

Parameters:
styleWritingModeValue - The type is String

getTableAlignAttribute

public String getTableAlignAttribute()
Receives the value of the ODFDOM attribute representation TableAlignAttribute , See table:align

Returns:
- the String , the value or null, if the attribute is not set and no default value defined.

setTableAlignAttribute

public void setTableAlignAttribute(String tableAlignValue)
Sets the value of ODFDOM attribute representation TableAlignAttribute , See table:align

Parameters:
tableAlignValue - The type is String

getTableBorderModelAttribute

public String getTableBorderModelAttribute()
Receives the value of the ODFDOM attribute representation TableBorderModelAttribute , See table:border-model

Returns:
- the String , the value or null, if the attribute is not set and no default value defined.

setTableBorderModelAttribute

public void setTableBorderModelAttribute(String tableBorderModelValue)
Sets the value of ODFDOM attribute representation TableBorderModelAttribute , See table:border-model

Parameters:
tableBorderModelValue - The type is String

getTableDisplayAttribute

public Boolean getTableDisplayAttribute()
Receives the value of the ODFDOM attribute representation TableDisplayAttribute , See table:display

Returns:
- the Boolean , the value or null, if the attribute is not set and no default value defined.

setTableDisplayAttribute

public void setTableDisplayAttribute(Boolean tableDisplayValue)
Sets the value of ODFDOM attribute representation TableDisplayAttribute , See table:display

Parameters:
tableDisplayValue - The type is Boolean

newStyleBackgroundImageElement

public StyleBackgroundImageElement newStyleBackgroundImageElement()
Create child element style:background-image. Child element is new in Odf 1.2

Returns:
the element style:background-image

accept

public void accept(ElementVisitor visitor)
Description copied from class: OdfElement
Accept an visitor instance to allow the visitor to do some operations. Refer to visitor design pattern to get a better understanding.

Overrides:
accept in class OdfElement
Parameters:
visitor - an instance of DefaultElementVisitor


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.