Class TableTableRowElement

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

public class TableTableRowElement extends OdfStylableElement
DOM implementation of OpenDocument element <table:table-row>.
See Also:
  • Field Details

    • ELEMENT_NAME

      public static final OdfName ELEMENT_NAME
  • Constructor Details

    • TableTableRowElement

      public TableTableRowElement(OdfFileDom ownerDoc)
      Create the instance of TableTableRowElement
      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 <table:table-row>.
    • getTableDefaultCellStyleNameAttribute

      public String getTableDefaultCellStyleNameAttribute()
      Receives the value of the ODFDOM attribute representation TableDefaultCellStyleNameAttribute , See @table:default-cell-style-name
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setTableDefaultCellStyleNameAttribute

      public void setTableDefaultCellStyleNameAttribute(String tableDefaultCellStyleNameValue)
      Sets the value of ODFDOM attribute representation TableDefaultCellStyleNameAttribute , See @table:default-cell-style-name
      Parameters:
      tableDefaultCellStyleNameValue - The type is String
    • getTableNumberRowsRepeatedAttribute

      public Integer getTableNumberRowsRepeatedAttribute()
      Receives the value of the ODFDOM attribute representation TableNumberRowsRepeatedAttribute , See @table:number-rows-repeated
      Returns:
      - the Integer , the value or null, if the attribute is not set and no default value defined.
    • setTableNumberRowsRepeatedAttribute

      public void setTableNumberRowsRepeatedAttribute(Integer tableNumberRowsRepeatedValue)
      Sets the value of ODFDOM attribute representation TableNumberRowsRepeatedAttribute , See @table:number-rows-repeated
      Parameters:
      tableNumberRowsRepeatedValue - The type is Integer
    • getTableStyleNameAttribute

      public String getTableStyleNameAttribute()
      Receives the value of the ODFDOM attribute representation TableStyleNameAttribute , See @table:style-name
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setTableStyleNameAttribute

      public void setTableStyleNameAttribute(String tableStyleNameValue)
      Sets the value of ODFDOM attribute representation TableStyleNameAttribute , See @table:style-name
      Parameters:
      tableStyleNameValue - The type is String
    • getTableVisibilityAttribute

      public String getTableVisibilityAttribute()
      Receives the value of the ODFDOM attribute representation TableVisibilityAttribute , See @table:visibility
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setTableVisibilityAttribute

      public void setTableVisibilityAttribute(String tableVisibilityValue)
      Sets the value of ODFDOM attribute representation TableVisibilityAttribute , See @table:visibility
      Parameters:
      tableVisibilityValue - The type is String
    • getXmlIdAttribute

      public String getXmlIdAttribute()
      Receives the value of the ODFDOM attribute representation XmlIdAttribute , See @xml:id
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setXmlIdAttribute

      public void setXmlIdAttribute(String xmlIdValue)
      Sets the value of ODFDOM attribute representation XmlIdAttribute , See @xml:id
      Parameters:
      xmlIdValue - The type is String
    • newTableCoveredTableCellElement

      public TableCoveredTableCellElement newTableCoveredTableCellElement(double officeValueValue, String officeValueTypeValue)
      Create child element <table:covered-table-cell>.
      Parameters:
      officeValueValue - the Double value of OfficeValueAttribute, see @office:value at specification
      officeValueTypeValue - the String value of OfficeValueTypeAttribute , see @office:value-type at specification
      Returns:
      the element <table:covered-table-cell>
    • newTableTableCellElement

      public TableTableCellElement newTableTableCellElement(double officeValueValue, String officeValueTypeValue)
      Create child element <table:table-cell>.
      Parameters:
      officeValueValue - the Double value of OfficeValueAttribute, see @office:value at specification
      officeValueTypeValue - the String value of OfficeValueTypeAttribute , see @office:value-type at specification
      Returns:
      the element <table:table-cell>
    • 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
    • isComponentRoot

      public boolean isComponentRoot()
      Overrides:
      isComponentRoot in class OdfElement
    • getRepetition

      public int getRepetition()
      Overrides:
      getRepetition in class OdfElement
      Returns:
      the repetition the element represents, by default it is 1
    • isRepeatable

      public boolean isRepeatable()
      Overrides:
      isRepeatable in class OdfElement
      Returns:
      true if the element does represent multiple instances. (only applicable for some elements as cell or row).
    • setRepetition

      public void setRepetition(int repetition)
      Overrides:
      setRepetition in class OdfElement
    • split

      public TableTableRowElement split(int posStart)
      Splitting the element at the given position into two halves
      Overrides:
      split in class OdfElement
      Parameters:
      posStart - The split position. Counting is starting with zero. The start of the second half.
      Returns:
      the new created second element (or if posStart was less than 1 the original element)