Class StyleTableCellPropertiesElement

All Implemented Interfaces:
Serializable, Cloneable, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo

public class StyleTableCellPropertiesElement extends OdfStylePropertiesBase
DOM implementation of OpenDocument element <style:table-cell-properties>.
See Also:
  • Field Details

  • Constructor Details

    • StyleTableCellPropertiesElement

      public StyleTableCellPropertiesElement(OdfFileDom ownerDoc)
      Create the instance of StyleTableCellPropertiesElement
      Parameters:
      ownerDoc - The type is OdfFileDom
  • Method Details

    • getOdfName

      public OdfName getOdfName()
      Get the element name
      Specified by:
      getOdfName in class OdfElement
      Returns:
      return OdfName the name of element <style:table-cell-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
    • getFoBorderAttribute

      public String getFoBorderAttribute()
      Receives the value of the ODFDOM attribute representation FoBorderAttribute , See @fo:border
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setFoBorderAttribute

      public void setFoBorderAttribute(String foBorderValue)
      Sets the value of ODFDOM attribute representation FoBorderAttribute , See @fo:border
      Parameters:
      foBorderValue - The type is String
    • getFoBorderBottomAttribute

      public String getFoBorderBottomAttribute()
      Receives the value of the ODFDOM attribute representation FoBorderBottomAttribute , See @fo:border-bottom
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setFoBorderBottomAttribute

      public void setFoBorderBottomAttribute(String foBorderBottomValue)
      Sets the value of ODFDOM attribute representation FoBorderBottomAttribute , See @fo:border-bottom
      Parameters:
      foBorderBottomValue - The type is String
    • getFoBorderLeftAttribute

      public String getFoBorderLeftAttribute()
      Receives the value of the ODFDOM attribute representation FoBorderLeftAttribute , See @fo:border-left
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setFoBorderLeftAttribute

      public void setFoBorderLeftAttribute(String foBorderLeftValue)
      Sets the value of ODFDOM attribute representation FoBorderLeftAttribute , See @fo:border-left
      Parameters:
      foBorderLeftValue - The type is String
    • getFoBorderRightAttribute

      public String getFoBorderRightAttribute()
      Receives the value of the ODFDOM attribute representation FoBorderRightAttribute , See @fo:border-right
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setFoBorderRightAttribute

      public void setFoBorderRightAttribute(String foBorderRightValue)
      Sets the value of ODFDOM attribute representation FoBorderRightAttribute , See @fo:border-right
      Parameters:
      foBorderRightValue - The type is String
    • getFoBorderTopAttribute

      public String getFoBorderTopAttribute()
      Receives the value of the ODFDOM attribute representation FoBorderTopAttribute , See @fo:border-top
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setFoBorderTopAttribute

      public void setFoBorderTopAttribute(String foBorderTopValue)
      Sets the value of ODFDOM attribute representation FoBorderTopAttribute , See @fo:border-top
      Parameters:
      foBorderTopValue - The type is String
    • getFoPaddingAttribute

      public String getFoPaddingAttribute()
      Receives the value of the ODFDOM attribute representation FoPaddingAttribute , See @fo:padding
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setFoPaddingAttribute

      public void setFoPaddingAttribute(String foPaddingValue)
      Sets the value of ODFDOM attribute representation FoPaddingAttribute , See @fo:padding
      Parameters:
      foPaddingValue - The type is String
    • getFoPaddingBottomAttribute

      public String getFoPaddingBottomAttribute()
      Receives the value of the ODFDOM attribute representation FoPaddingBottomAttribute , See @fo:padding-bottom
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setFoPaddingBottomAttribute

      public void setFoPaddingBottomAttribute(String foPaddingBottomValue)
      Sets the value of ODFDOM attribute representation FoPaddingBottomAttribute , See @fo:padding-bottom
      Parameters:
      foPaddingBottomValue - The type is String
    • getFoPaddingLeftAttribute

      public String getFoPaddingLeftAttribute()
      Receives the value of the ODFDOM attribute representation FoPaddingLeftAttribute , See @fo:padding-left
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setFoPaddingLeftAttribute

      public void setFoPaddingLeftAttribute(String foPaddingLeftValue)
      Sets the value of ODFDOM attribute representation FoPaddingLeftAttribute , See @fo:padding-left
      Parameters:
      foPaddingLeftValue - The type is String
    • getFoPaddingRightAttribute

      public String getFoPaddingRightAttribute()
      Receives the value of the ODFDOM attribute representation FoPaddingRightAttribute , See @fo:padding-right
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setFoPaddingRightAttribute

      public void setFoPaddingRightAttribute(String foPaddingRightValue)
      Sets the value of ODFDOM attribute representation FoPaddingRightAttribute , See @fo:padding-right
      Parameters:
      foPaddingRightValue - The type is String
    • getFoPaddingTopAttribute

      public String getFoPaddingTopAttribute()
      Receives the value of the ODFDOM attribute representation FoPaddingTopAttribute , See @fo:padding-top
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setFoPaddingTopAttribute

      public void setFoPaddingTopAttribute(String foPaddingTopValue)
      Sets the value of ODFDOM attribute representation FoPaddingTopAttribute , See @fo:padding-top
      Parameters:
      foPaddingTopValue - The type is String
    • getFoWrapOptionAttribute

      public String getFoWrapOptionAttribute()
      Receives the value of the ODFDOM attribute representation FoWrapOptionAttribute , See @fo:wrap-option
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setFoWrapOptionAttribute

      public void setFoWrapOptionAttribute(String foWrapOptionValue)
      Sets the value of ODFDOM attribute representation FoWrapOptionAttribute , See @fo:wrap-option
      Parameters:
      foWrapOptionValue - The type is String
    • getStyleBorderLineWidthAttribute

      public String getStyleBorderLineWidthAttribute()
      Receives the value of the ODFDOM attribute representation StyleBorderLineWidthAttribute , See @style:border-line-width
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleBorderLineWidthAttribute

      public void setStyleBorderLineWidthAttribute(String styleBorderLineWidthValue)
      Sets the value of ODFDOM attribute representation StyleBorderLineWidthAttribute , See @style:border-line-width
      Parameters:
      styleBorderLineWidthValue - The type is String
    • getStyleBorderLineWidthBottomAttribute

      public String getStyleBorderLineWidthBottomAttribute()
      Receives the value of the ODFDOM attribute representation StyleBorderLineWidthBottomAttribute , See @style:border-line-width-bottom
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleBorderLineWidthBottomAttribute

      public void setStyleBorderLineWidthBottomAttribute(String styleBorderLineWidthBottomValue)
      Sets the value of ODFDOM attribute representation StyleBorderLineWidthBottomAttribute , See @style:border-line-width-bottom
      Parameters:
      styleBorderLineWidthBottomValue - The type is String
    • getStyleBorderLineWidthLeftAttribute

      public String getStyleBorderLineWidthLeftAttribute()
      Receives the value of the ODFDOM attribute representation StyleBorderLineWidthLeftAttribute , See @style:border-line-width-left
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleBorderLineWidthLeftAttribute

      public void setStyleBorderLineWidthLeftAttribute(String styleBorderLineWidthLeftValue)
      Sets the value of ODFDOM attribute representation StyleBorderLineWidthLeftAttribute , See @style:border-line-width-left
      Parameters:
      styleBorderLineWidthLeftValue - The type is String
    • getStyleBorderLineWidthRightAttribute

      public String getStyleBorderLineWidthRightAttribute()
      Receives the value of the ODFDOM attribute representation StyleBorderLineWidthRightAttribute , See @style:border-line-width-right
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleBorderLineWidthRightAttribute

      public void setStyleBorderLineWidthRightAttribute(String styleBorderLineWidthRightValue)
      Sets the value of ODFDOM attribute representation StyleBorderLineWidthRightAttribute , See @style:border-line-width-right
      Parameters:
      styleBorderLineWidthRightValue - The type is String
    • getStyleBorderLineWidthTopAttribute

      public String getStyleBorderLineWidthTopAttribute()
      Receives the value of the ODFDOM attribute representation StyleBorderLineWidthTopAttribute , See @style:border-line-width-top
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleBorderLineWidthTopAttribute

      public void setStyleBorderLineWidthTopAttribute(String styleBorderLineWidthTopValue)
      Sets the value of ODFDOM attribute representation StyleBorderLineWidthTopAttribute , See @style:border-line-width-top
      Parameters:
      styleBorderLineWidthTopValue - The type is String
    • getStyleCellProtectAttribute

      public String getStyleCellProtectAttribute()
      Receives the value of the ODFDOM attribute representation StyleCellProtectAttribute , See @style:cell-protect
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleCellProtectAttribute

      public void setStyleCellProtectAttribute(String styleCellProtectValue)
      Sets the value of ODFDOM attribute representation StyleCellProtectAttribute , See @style:cell-protect
      Parameters:
      styleCellProtectValue - The type is String
    • getStyleDecimalPlacesAttribute

      public Integer getStyleDecimalPlacesAttribute()
      Receives the value of the ODFDOM attribute representation StyleDecimalPlacesAttribute , See @style:decimal-places
      Returns:
      - the Integer , the value or null, if the attribute is not set and no default value defined.
    • setStyleDecimalPlacesAttribute

      public void setStyleDecimalPlacesAttribute(Integer styleDecimalPlacesValue)
      Sets the value of ODFDOM attribute representation StyleDecimalPlacesAttribute , See @style:decimal-places
      Parameters:
      styleDecimalPlacesValue - The type is Integer
    • getStyleDiagonalBlTrAttribute

      public String getStyleDiagonalBlTrAttribute()
      Receives the value of the ODFDOM attribute representation StyleDiagonalBlTrAttribute , See @style:diagonal-bl-tr
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleDiagonalBlTrAttribute

      public void setStyleDiagonalBlTrAttribute(String styleDiagonalBlTrValue)
      Sets the value of ODFDOM attribute representation StyleDiagonalBlTrAttribute , See @style:diagonal-bl-tr
      Parameters:
      styleDiagonalBlTrValue - The type is String
    • getStyleDiagonalBlTrWidthsAttribute

      public String getStyleDiagonalBlTrWidthsAttribute()
      Receives the value of the ODFDOM attribute representation StyleDiagonalBlTrWidthsAttribute , See @style:diagonal-bl-tr-widths
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleDiagonalBlTrWidthsAttribute

      public void setStyleDiagonalBlTrWidthsAttribute(String styleDiagonalBlTrWidthsValue)
      Sets the value of ODFDOM attribute representation StyleDiagonalBlTrWidthsAttribute , See @style:diagonal-bl-tr-widths
      Parameters:
      styleDiagonalBlTrWidthsValue - The type is String
    • getStyleDiagonalTlBrAttribute

      public String getStyleDiagonalTlBrAttribute()
      Receives the value of the ODFDOM attribute representation StyleDiagonalTlBrAttribute , See @style:diagonal-tl-br
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleDiagonalTlBrAttribute

      public void setStyleDiagonalTlBrAttribute(String styleDiagonalTlBrValue)
      Sets the value of ODFDOM attribute representation StyleDiagonalTlBrAttribute , See @style:diagonal-tl-br
      Parameters:
      styleDiagonalTlBrValue - The type is String
    • getStyleDiagonalTlBrWidthsAttribute

      public String getStyleDiagonalTlBrWidthsAttribute()
      Receives the value of the ODFDOM attribute representation StyleDiagonalTlBrWidthsAttribute , See @style:diagonal-tl-br-widths
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleDiagonalTlBrWidthsAttribute

      public void setStyleDiagonalTlBrWidthsAttribute(String styleDiagonalTlBrWidthsValue)
      Sets the value of ODFDOM attribute representation StyleDiagonalTlBrWidthsAttribute , See @style:diagonal-tl-br-widths
      Parameters:
      styleDiagonalTlBrWidthsValue - The type is String
    • getStyleDirectionAttribute

      public String getStyleDirectionAttribute()
      Receives the value of the ODFDOM attribute representation StyleDirectionAttribute , See @style:direction
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleDirectionAttribute

      public void setStyleDirectionAttribute(String styleDirectionValue)
      Sets the value of ODFDOM attribute representation StyleDirectionAttribute , See @style:direction
      Parameters:
      styleDirectionValue - The type is String
    • getStyleGlyphOrientationVerticalAttribute

      public String getStyleGlyphOrientationVerticalAttribute()
      Receives the value of the ODFDOM attribute representation StyleGlyphOrientationVerticalAttribute , See @style:glyph-orientation-vertical
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleGlyphOrientationVerticalAttribute

      public void setStyleGlyphOrientationVerticalAttribute(String styleGlyphOrientationVerticalValue)
      Sets the value of ODFDOM attribute representation StyleGlyphOrientationVerticalAttribute , See @style:glyph-orientation-vertical
      Parameters:
      styleGlyphOrientationVerticalValue - The type is String
    • getStylePrintContentAttribute

      public Boolean getStylePrintContentAttribute()
      Receives the value of the ODFDOM attribute representation StylePrintContentAttribute , See @style:print-content
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setStylePrintContentAttribute

      public void setStylePrintContentAttribute(Boolean stylePrintContentValue)
      Sets the value of ODFDOM attribute representation StylePrintContentAttribute , See @style:print-content
      Parameters:
      stylePrintContentValue - The type is Boolean
    • getStyleRepeatContentAttribute

      public Boolean getStyleRepeatContentAttribute()
      Receives the value of the ODFDOM attribute representation StyleRepeatContentAttribute , See @style:repeat-content
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setStyleRepeatContentAttribute

      public void setStyleRepeatContentAttribute(Boolean styleRepeatContentValue)
      Sets the value of ODFDOM attribute representation StyleRepeatContentAttribute , See @style:repeat-content
      Parameters:
      styleRepeatContentValue - The type is Boolean
    • getStyleRotationAlignAttribute

      public String getStyleRotationAlignAttribute()
      Receives the value of the ODFDOM attribute representation StyleRotationAlignAttribute , See @style:rotation-align
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleRotationAlignAttribute

      public void setStyleRotationAlignAttribute(String styleRotationAlignValue)
      Sets the value of ODFDOM attribute representation StyleRotationAlignAttribute , See @style:rotation-align
      Parameters:
      styleRotationAlignValue - The type is String
    • getStyleRotationAngleAttribute

      public String getStyleRotationAngleAttribute()
      Receives the value of the ODFDOM attribute representation StyleRotationAngleAttribute , See @style:rotation-angle
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleRotationAngleAttribute

      public void setStyleRotationAngleAttribute(String styleRotationAngleValue)
      Sets the value of ODFDOM attribute representation StyleRotationAngleAttribute , See @style:rotation-angle
      Parameters:
      styleRotationAngleValue - 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
    • getStyleShrinkToFitAttribute

      public Boolean getStyleShrinkToFitAttribute()
      Receives the value of the ODFDOM attribute representation StyleShrinkToFitAttribute , See @style:shrink-to-fit
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setStyleShrinkToFitAttribute

      public void setStyleShrinkToFitAttribute(Boolean styleShrinkToFitValue)
      Sets the value of ODFDOM attribute representation StyleShrinkToFitAttribute , See @style:shrink-to-fit
      Parameters:
      styleShrinkToFitValue - The type is Boolean
    • getStyleTextAlignSourceAttribute

      public String getStyleTextAlignSourceAttribute()
      Receives the value of the ODFDOM attribute representation StyleTextAlignSourceAttribute , See @style:text-align-source
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleTextAlignSourceAttribute

      public void setStyleTextAlignSourceAttribute(String styleTextAlignSourceValue)
      Sets the value of ODFDOM attribute representation StyleTextAlignSourceAttribute , See @style:text-align-source
      Parameters:
      styleTextAlignSourceValue - The type is String
    • getStyleVerticalAlignAttribute

      public String getStyleVerticalAlignAttribute()
      Receives the value of the ODFDOM attribute representation StyleVerticalAlignAttribute , See @style:vertical-align
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleVerticalAlignAttribute

      public void setStyleVerticalAlignAttribute(String styleVerticalAlignValue)
      Sets the value of ODFDOM attribute representation StyleVerticalAlignAttribute , See @style:vertical-align
      Parameters:
      styleVerticalAlignValue - 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
    • newStyleBackgroundImageElement

      public StyleBackgroundImageElement newStyleBackgroundImageElement()
      Create child element <style:background-image>.

      Child element was added in ODF 1.2

      Returns:
      the element <style:background-image>
    • accept

      public void accept(ElementVisitor visitor)
      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
    • removeBorder

      public void removeBorder(byte borderDeletion)
      Removes sides of borders in total. Required by insertion of column/rows as inserted cell borders depend on preceding & following cell borders. Only identical sides will be kept.
      Parameters:
      borderDeletion - removes the borders as given in byte
    • removeDiagonalCross

      public void removeDiagonalCross(byte diagonalCrossDeletion)
      Removes the diagonal cross of a cell.
      Parameters:
      diagonalCrossDeletion - remove diagonal cross as given in byte.
    • findDifferentDiagonalCross

      public static byte findDifferentDiagonalCross(StyleTableCellPropertiesElement newCellProps, StyleTableCellPropertiesElement followingCellProps)
      Find different diagonal borders (or cross) of the given cell property elements.
    • findDifferentBorders

      public static byte findDifferentBorders(StyleTableCellPropertiesElement newCellProps, StyleTableCellPropertiesElement followingCellProps)
      Find different borders of the given cell property elements.