Class TableTableElement

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

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

    • ELEMENT_NAME

      public static final OdfName ELEMENT_NAME
  • Constructor Details

    • TableTableElement

      public TableTableElement(OdfFileDom ownerDoc)
      Create the instance of TableTableElement
      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>.
    • getTableIsSubTableAttribute

      public Boolean getTableIsSubTableAttribute()
      Receives the value of the ODFDOM attribute representation TableIsSubTableAttribute , See @table:is-sub-table
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setTableIsSubTableAttribute

      public void setTableIsSubTableAttribute(Boolean tableIsSubTableValue)
      Sets the value of ODFDOM attribute representation TableIsSubTableAttribute , See @table:is-sub-table
      Parameters:
      tableIsSubTableValue - The type is Boolean
    • getTableNameAttribute

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

      public void setTableNameAttribute(String tableNameValue)
      Sets the value of ODFDOM attribute representation TableNameAttribute , See @table:name
      Parameters:
      tableNameValue - The type is String
    • getTablePrintAttribute

      public Boolean getTablePrintAttribute()
      Receives the value of the ODFDOM attribute representation TablePrintAttribute , See @table:print
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setTablePrintAttribute

      public void setTablePrintAttribute(Boolean tablePrintValue)
      Sets the value of ODFDOM attribute representation TablePrintAttribute , See @table:print
      Parameters:
      tablePrintValue - The type is Boolean
    • getTablePrintRangesAttribute

      public String getTablePrintRangesAttribute()
      Receives the value of the ODFDOM attribute representation TablePrintRangesAttribute , See @table:print-ranges
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setTablePrintRangesAttribute

      public void setTablePrintRangesAttribute(String tablePrintRangesValue)
      Sets the value of ODFDOM attribute representation TablePrintRangesAttribute , See @table:print-ranges
      Parameters:
      tablePrintRangesValue - The type is String
    • getTableProtectedAttribute

      public Boolean getTableProtectedAttribute()
      Receives the value of the ODFDOM attribute representation TableProtectedAttribute , See @table:protected
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setTableProtectedAttribute

      public void setTableProtectedAttribute(Boolean tableProtectedValue)
      Sets the value of ODFDOM attribute representation TableProtectedAttribute , See @table:protected
      Parameters:
      tableProtectedValue - The type is Boolean
    • getTableProtectionKeyAttribute

      public String getTableProtectionKeyAttribute()
      Receives the value of the ODFDOM attribute representation TableProtectionKeyAttribute , See @table:protection-key
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setTableProtectionKeyAttribute

      public void setTableProtectionKeyAttribute(String tableProtectionKeyValue)
      Sets the value of ODFDOM attribute representation TableProtectionKeyAttribute , See @table:protection-key
      Parameters:
      tableProtectionKeyValue - The type is String
    • getTableProtectionKeyDigestAlgorithmAttribute

      public String getTableProtectionKeyDigestAlgorithmAttribute()
      Receives the value of the ODFDOM attribute representation TableProtectionKeyDigestAlgorithmAttribute , See @table:protection-key-digest-algorithm
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setTableProtectionKeyDigestAlgorithmAttribute

      public void setTableProtectionKeyDigestAlgorithmAttribute(String tableProtectionKeyDigestAlgorithmValue)
      Sets the value of ODFDOM attribute representation TableProtectionKeyDigestAlgorithmAttribute , See @table:protection-key-digest-algorithm
      Parameters:
      tableProtectionKeyDigestAlgorithmValue - The type is String
    • 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
    • getTableTemplateNameAttribute

      public String getTableTemplateNameAttribute()
      Receives the value of the ODFDOM attribute representation TableTemplateNameAttribute , See @table:template-name
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setTableTemplateNameAttribute

      public void setTableTemplateNameAttribute(String tableTemplateNameValue)
      Sets the value of ODFDOM attribute representation TableTemplateNameAttribute , See @table:template-name
      Parameters:
      tableTemplateNameValue - The type is String
    • getTableUseBandingColumnsStylesAttribute

      public Boolean getTableUseBandingColumnsStylesAttribute()
      Receives the value of the ODFDOM attribute representation TableUseBandingColumnsStylesAttribute , See @table:use-banding-columns-styles
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setTableUseBandingColumnsStylesAttribute

      public void setTableUseBandingColumnsStylesAttribute(Boolean tableUseBandingColumnsStylesValue)
      Sets the value of ODFDOM attribute representation TableUseBandingColumnsStylesAttribute , See @table:use-banding-columns-styles
      Parameters:
      tableUseBandingColumnsStylesValue - The type is Boolean
    • getTableUseBandingRowsStylesAttribute

      public Boolean getTableUseBandingRowsStylesAttribute()
      Receives the value of the ODFDOM attribute representation TableUseBandingRowsStylesAttribute , See @table:use-banding-rows-styles
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setTableUseBandingRowsStylesAttribute

      public void setTableUseBandingRowsStylesAttribute(Boolean tableUseBandingRowsStylesValue)
      Sets the value of ODFDOM attribute representation TableUseBandingRowsStylesAttribute , See @table:use-banding-rows-styles
      Parameters:
      tableUseBandingRowsStylesValue - The type is Boolean
    • getTableUseFirstColumnStylesAttribute

      public Boolean getTableUseFirstColumnStylesAttribute()
      Receives the value of the ODFDOM attribute representation TableUseFirstColumnStylesAttribute , See @table:use-first-column-styles
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setTableUseFirstColumnStylesAttribute

      public void setTableUseFirstColumnStylesAttribute(Boolean tableUseFirstColumnStylesValue)
      Sets the value of ODFDOM attribute representation TableUseFirstColumnStylesAttribute , See @table:use-first-column-styles
      Parameters:
      tableUseFirstColumnStylesValue - The type is Boolean
    • getTableUseFirstRowStylesAttribute

      public Boolean getTableUseFirstRowStylesAttribute()
      Receives the value of the ODFDOM attribute representation TableUseFirstRowStylesAttribute , See @table:use-first-row-styles
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setTableUseFirstRowStylesAttribute

      public void setTableUseFirstRowStylesAttribute(Boolean tableUseFirstRowStylesValue)
      Sets the value of ODFDOM attribute representation TableUseFirstRowStylesAttribute , See @table:use-first-row-styles
      Parameters:
      tableUseFirstRowStylesValue - The type is Boolean
    • getTableUseLastColumnStylesAttribute

      public Boolean getTableUseLastColumnStylesAttribute()
      Receives the value of the ODFDOM attribute representation TableUseLastColumnStylesAttribute , See @table:use-last-column-styles
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setTableUseLastColumnStylesAttribute

      public void setTableUseLastColumnStylesAttribute(Boolean tableUseLastColumnStylesValue)
      Sets the value of ODFDOM attribute representation TableUseLastColumnStylesAttribute , See @table:use-last-column-styles
      Parameters:
      tableUseLastColumnStylesValue - The type is Boolean
    • getTableUseLastRowStylesAttribute

      public Boolean getTableUseLastRowStylesAttribute()
      Receives the value of the ODFDOM attribute representation TableUseLastRowStylesAttribute , See @table:use-last-row-styles
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setTableUseLastRowStylesAttribute

      public void setTableUseLastRowStylesAttribute(Boolean tableUseLastRowStylesValue)
      Sets the value of ODFDOM attribute representation TableUseLastRowStylesAttribute , See @table:use-last-row-styles
      Parameters:
      tableUseLastRowStylesValue - The type is Boolean
    • 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
    • newOfficeDdeSourceElement

      public OfficeDdeSourceElement newOfficeDdeSourceElement(String officeDdeApplicationValue, String officeDdeItemValue, String officeDdeTopicValue)
      Create child element <office:dde-source>.
      Parameters:
      officeDdeApplicationValue - the String value of OfficeDdeApplicationAttribute, see @office:dde-application at specification
      officeDdeItemValue - the String value of OfficeDdeItemAttribute, see @office:dde-item at specification
      officeDdeTopicValue - the String value of OfficeDdeTopicAttribute , see @office:dde-topic at specification
      Returns:
      the element <office:dde-source>
    • newOfficeFormsElement

      public OfficeFormsElement newOfficeFormsElement()
      Create child element <office:forms>.
      Returns:
      the element <office:forms>
    • newTableDescElement

      public TableDescElement newTableDescElement()
      Create child element <table:desc>.

      Child element was added in ODF 1.2

      Returns:
      the element <table:desc>
    • newTableNamedExpressionsElement

      public TableNamedExpressionsElement newTableNamedExpressionsElement()
      Create child element <table:named-expressions>.

      Child element was added in ODF 1.2

      Returns:
      the element <table:named-expressions>
    • newTableScenarioElement

      public TableScenarioElement newTableScenarioElement(boolean tableIsActiveValue, String tableScenarioRangesValue)
      Create child element <table:scenario>.
      Parameters:
      tableIsActiveValue - the Boolean value of TableIsActiveAttribute , see @table:is-active at specification
      tableScenarioRangesValue - the String value of TableScenarioRangesAttribute, see @table:scenario-ranges at specification
      Returns:
      the element <table:scenario>
    • newTableShapesElement

      public TableShapesElement newTableShapesElement()
      Create child element <table:shapes>.
      Returns:
      the element <table:shapes>
    • newTableTableColumnElement

      public TableTableColumnElement newTableTableColumnElement()
      Create child element <table:table-column>.
      Returns:
      the element <table:table-column>
    • newTableTableColumnGroupElement

      public TableTableColumnGroupElement newTableTableColumnGroupElement()
      Create child element <table:table-column-group>.
      Returns:
      the element <table:table-column-group>
    • newTableTableColumnsElement

      public TableTableColumnsElement newTableTableColumnsElement()
      Create child element <table:table-columns>.
      Returns:
      the element <table:table-columns>
    • newTableTableHeaderColumnsElement

      public TableTableHeaderColumnsElement newTableTableHeaderColumnsElement()
      Create child element <table:table-header-columns>.
      Returns:
      the element <table:table-header-columns>
    • newTableTableHeaderRowsElement

      public TableTableHeaderRowsElement newTableTableHeaderRowsElement()
      Create child element <table:table-header-rows>.
      Returns:
      the element <table:table-header-rows>
    • newTableTableRowElement

      public TableTableRowElement newTableTableRowElement()
      Create child element <table:table-row>.
      Returns:
      the element <table:table-row>
    • newTableTableRowGroupElement

      public TableTableRowGroupElement newTableTableRowGroupElement()
      Create child element <table:table-row-group>.
      Returns:
      the element <table:table-row-group>
    • newTableTableRowsElement

      public TableTableRowsElement newTableTableRowsElement()
      Create child element <table:table-rows>.
      Returns:
      the element <table:table-rows>
    • newTableTableSourceElement

      public TableTableSourceElement newTableTableSourceElement(String xlinkHrefValue, String xlinkTypeValue)
      Create child element <table:table-source>.
      Parameters:
      xlinkHrefValue - the String value of XlinkHrefAttribute, see @xlink:href at specification
      xlinkTypeValue - the String value of XlinkTypeAttribute, see @xlink:type at specification
      Returns:
      the element <table:table-source>
    • newTableTitleElement

      public TableTitleElement newTableTitleElement()
      Create child element <table:title>.

      Child element was added in ODF 1.2

      Returns:
      the element <table:title>
    • newTextSoftPageBreakElement

      public TextSoftPageBreakElement newTextSoftPageBreakElement()
      Create child element <text:soft-page-break>.

      Child element was added in ODF 1.1

      Returns:
      the element <text:soft-page-break>
    • 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