Class TableTableElement
java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
org.odftoolkit.odfdom.pkg.OdfElement
org.odftoolkit.odfdom.dom.element.OdfStylableElement
org.odftoolkit.odfdom.dom.element.table.TableTableElement
- All Implemented Interfaces:
Serializable,Cloneable,OdfStylePropertySet,Element,ElementTraversal,EventTarget,Node,NodeList,TypeInfo
DOM implementation of OpenDocument element <table:table>.
- See Also:
-
Field Summary
FieldsFields inherited from class org.odftoolkit.odfdom.dom.element.OdfStylableElement
mFamily, mStyleNameAttribFields inherited from class org.apache.xerces.dom.ElementNSImpl
localName, namespaceURIFields inherited from class org.apache.xerces.dom.ElementImpl
attributes, nameFields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocumentFields inherited from class org.apache.xerces.dom.ChildNode
nextSibling, previousSiblingFields 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_NODEFields 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_NODEFields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION -
Constructor Summary
ConstructorsConstructorDescriptionTableTableElement(OdfFileDom ownerDoc) Create the instance ofTableTableElement -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ElementVisitor visitor) Accept an visitor instance to allow the visitor to do some operations.Get the element nameReceives the value of the ODFDOM attribute representationTableIsSubTableAttribute, See @table:is-sub-tableReceives the value of the ODFDOM attribute representationTableNameAttribute, See @table:nameReceives the value of the ODFDOM attribute representationTablePrintAttribute, See @table:printReceives the value of the ODFDOM attribute representationTablePrintRangesAttribute, See @table:print-rangesReceives the value of the ODFDOM attribute representationTableProtectedAttribute, See @table:protectedReceives the value of the ODFDOM attribute representationTableProtectionKeyAttribute, See @table:protection-keyReceives the value of the ODFDOM attribute representationTableProtectionKeyDigestAlgorithmAttribute, See @table:protection-key-digest-algorithmReceives the value of the ODFDOM attribute representationTableStyleNameAttribute, See @table:style-nameReceives the value of the ODFDOM attribute representationTableTemplateNameAttribute, See @table:template-nameReceives the value of the ODFDOM attribute representationTableUseBandingColumnsStylesAttribute, See @table:use-banding-columns-stylesReceives the value of the ODFDOM attribute representationTableUseBandingRowsStylesAttribute, See @table:use-banding-rows-stylesReceives the value of the ODFDOM attribute representationTableUseFirstColumnStylesAttribute, See @table:use-first-column-stylesReceives the value of the ODFDOM attribute representationTableUseFirstRowStylesAttribute, See @table:use-first-row-stylesReceives the value of the ODFDOM attribute representationTableUseLastColumnStylesAttribute, See @table:use-last-column-stylesReceives the value of the ODFDOM attribute representationTableUseLastRowStylesAttribute, See @table:use-last-row-stylesReceives the value of the ODFDOM attribute representationXmlIdAttribute, See @xml:idbooleannewOfficeDdeSourceElement(String officeDdeApplicationValue, String officeDdeItemValue, String officeDdeTopicValue) Create child element <office:dde-source>.Create child element <office:forms>.Create child element <table:desc>.Create child element <table:named-expressions>.newTableScenarioElement(boolean tableIsActiveValue, String tableScenarioRangesValue) Create child element <table:scenario>.Create child element <table:shapes>.Create child element <table:table-column>.Create child element <table:table-column-group>.Create child element <table:table-columns>.Create child element <table:table-header-columns>.Create child element <table:table-header-rows>.Create child element <table:table-row>.Create child element <table:table-row-group>.Create child element <table:table-rows>.newTableTableSourceElement(String xlinkHrefValue, String xlinkTypeValue) Create child element <table:table-source>.Create child element <table:title>.Create child element <text:soft-page-break>.voidsetTableIsSubTableAttribute(Boolean tableIsSubTableValue) Sets the value of ODFDOM attribute representationTableIsSubTableAttribute, See @table:is-sub-tablevoidsetTableNameAttribute(String tableNameValue) Sets the value of ODFDOM attribute representationTableNameAttribute, See @table:namevoidsetTablePrintAttribute(Boolean tablePrintValue) Sets the value of ODFDOM attribute representationTablePrintAttribute, See @table:printvoidsetTablePrintRangesAttribute(String tablePrintRangesValue) Sets the value of ODFDOM attribute representationTablePrintRangesAttribute, See @table:print-rangesvoidsetTableProtectedAttribute(Boolean tableProtectedValue) Sets the value of ODFDOM attribute representationTableProtectedAttribute, See @table:protectedvoidsetTableProtectionKeyAttribute(String tableProtectionKeyValue) Sets the value of ODFDOM attribute representationTableProtectionKeyAttribute, See @table:protection-keyvoidsetTableProtectionKeyDigestAlgorithmAttribute(String tableProtectionKeyDigestAlgorithmValue) Sets the value of ODFDOM attribute representationTableProtectionKeyDigestAlgorithmAttribute, See @table:protection-key-digest-algorithmvoidsetTableStyleNameAttribute(String tableStyleNameValue) Sets the value of ODFDOM attribute representationTableStyleNameAttribute, See @table:style-namevoidsetTableTemplateNameAttribute(String tableTemplateNameValue) Sets the value of ODFDOM attribute representationTableTemplateNameAttribute, See @table:template-namevoidsetTableUseBandingColumnsStylesAttribute(Boolean tableUseBandingColumnsStylesValue) Sets the value of ODFDOM attribute representationTableUseBandingColumnsStylesAttribute, See @table:use-banding-columns-stylesvoidsetTableUseBandingRowsStylesAttribute(Boolean tableUseBandingRowsStylesValue) Sets the value of ODFDOM attribute representationTableUseBandingRowsStylesAttribute, See @table:use-banding-rows-stylesvoidsetTableUseFirstColumnStylesAttribute(Boolean tableUseFirstColumnStylesValue) Sets the value of ODFDOM attribute representationTableUseFirstColumnStylesAttribute, See @table:use-first-column-stylesvoidsetTableUseFirstRowStylesAttribute(Boolean tableUseFirstRowStylesValue) Sets the value of ODFDOM attribute representationTableUseFirstRowStylesAttribute, See @table:use-first-row-stylesvoidsetTableUseLastColumnStylesAttribute(Boolean tableUseLastColumnStylesValue) Sets the value of ODFDOM attribute representationTableUseLastColumnStylesAttribute, See @table:use-last-column-stylesvoidsetTableUseLastRowStylesAttribute(Boolean tableUseLastRowStylesValue) Sets the value of ODFDOM attribute representationTableUseLastRowStylesAttribute, See @table:use-last-row-stylesvoidsetXmlIdAttribute(String xmlIdValue) Sets the value of ODFDOM attribute representationXmlIdAttribute, See @xml:idMethods inherited from class org.odftoolkit.odfdom.dom.element.OdfStylableElement
getAutomaticStyle, getAutomaticStyles, getDocumentStyle, getDocumentStyleName, getOrCreateAutomaticStyles, getOrCreateUnqiueAutomaticStyle, getOrCreateUnqiueAutomaticStyle, getProperties, getProperty, getStrictProperties, getStyleFamily, getStyleName, hasAutomaticStyle, hasDocumentStyle, hasProperty, onInsertNode, onRemoveNode, removeProperty, reuseDocumentStyle, setAttributeNS, setDocumentStyle, setProperties, setProperty, setStyleNameMethods inherited from class org.odftoolkit.odfdom.pkg.OdfElement
appendChild, appendUsingWhitespaceHandling, cloneElement, cloneNode, cloneNode, cloneNode, cloneOdfElement, componentSize, copyAttributes, countChildComponents, countDescendantComponents, countPrecedingSiblingElements, delete, equals, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getChildElement, getChildElement, getComponent, getComponentRoot, getFirstChildElement, getLastChildElement, getNextSiblingElement, getOdfAttribute, getOdfAttribute, getOdfAttribute, getOdfAttributeValue, getParentAs, getPreviousSiblingElement, getRepetition, getTextContent, hasAncestor, hasOdfAttribute, ignoredComponent, insert, insert, insertBefore, isIgnoredElement, isIgnoredElement, isRepeatable, markAsComponentRoot, markText, moveChildrenTo, onInsertNode, onRemoveNode, receiveNode, receiveNode, removeChild, removeContent, removeSingleElement, replaceChild, selfAndDescendantTextIgnoredAsComponent, setComponent, setOdfAttribute, setOdfAttribute, setOdfAttributeValue, setRepetition, split, toStringMethods inherited from class org.apache.xerces.dom.ElementNSImpl
getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, getXMLBaseAttribute, isDerivedFrom, setPrefix, setTypeMethods inherited from class org.apache.xerces.dom.ElementImpl
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getNodeName, getNodeType, getPreviousElementSibling, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeDataMethods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, hasChildNodes, item, setTextContent, synchronizeChildrenMethods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSiblingMethods inherited from class org.apache.xerces.dom.NodeImpl
addEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserDataMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.w3c.dom.Node
compareDocumentPosition, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getUserData, hasChildNodes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setNodeValue, setTextContent, setUserData
-
Field Details
-
ELEMENT_NAME
-
-
Constructor Details
-
TableTableElement
Create the instance ofTableTableElement- Parameters:
ownerDoc- The type isOdfFileDom
-
-
Method Details
-
getOdfName
Get the element name- Specified by:
getOdfNamein classOdfElement- Returns:
- return
OdfNamethe name of element <table:table>.
-
getTableIsSubTableAttribute
Receives the value of the ODFDOM attribute representationTableIsSubTableAttribute, See @table:is-sub-table- Returns:
- - the
Boolean, the value ornull, if the attribute is not set and no default value defined.
-
setTableIsSubTableAttribute
Sets the value of ODFDOM attribute representationTableIsSubTableAttribute, See @table:is-sub-table- Parameters:
tableIsSubTableValue- The type isBoolean
-
getTableNameAttribute
Receives the value of the ODFDOM attribute representationTableNameAttribute, See @table:name- Returns:
- - the
String, the value ornull, if the attribute is not set and no default value defined.
-
setTableNameAttribute
Sets the value of ODFDOM attribute representationTableNameAttribute, See @table:name- Parameters:
tableNameValue- The type isString
-
getTablePrintAttribute
Receives the value of the ODFDOM attribute representationTablePrintAttribute, See @table:print- Returns:
- - the
Boolean, the value ornull, if the attribute is not set and no default value defined.
-
setTablePrintAttribute
Sets the value of ODFDOM attribute representationTablePrintAttribute, See @table:print- Parameters:
tablePrintValue- The type isBoolean
-
getTablePrintRangesAttribute
Receives the value of the ODFDOM attribute representationTablePrintRangesAttribute, See @table:print-ranges- Returns:
- - the
String, the value ornull, if the attribute is not set and no default value defined.
-
setTablePrintRangesAttribute
Sets the value of ODFDOM attribute representationTablePrintRangesAttribute, See @table:print-ranges- Parameters:
tablePrintRangesValue- The type isString
-
getTableProtectedAttribute
Receives the value of the ODFDOM attribute representationTableProtectedAttribute, See @table:protected- Returns:
- - the
Boolean, the value ornull, if the attribute is not set and no default value defined.
-
setTableProtectedAttribute
Sets the value of ODFDOM attribute representationTableProtectedAttribute, See @table:protected- Parameters:
tableProtectedValue- The type isBoolean
-
getTableProtectionKeyAttribute
Receives the value of the ODFDOM attribute representationTableProtectionKeyAttribute, See @table:protection-key- Returns:
- - the
String, the value ornull, if the attribute is not set and no default value defined.
-
setTableProtectionKeyAttribute
Sets the value of ODFDOM attribute representationTableProtectionKeyAttribute, See @table:protection-key- Parameters:
tableProtectionKeyValue- The type isString
-
getTableProtectionKeyDigestAlgorithmAttribute
Receives the value of the ODFDOM attribute representationTableProtectionKeyDigestAlgorithmAttribute, See @table:protection-key-digest-algorithm- Returns:
- - the
String, the value ornull, if the attribute is not set and no default value defined.
-
setTableProtectionKeyDigestAlgorithmAttribute
public void setTableProtectionKeyDigestAlgorithmAttribute(String tableProtectionKeyDigestAlgorithmValue) Sets the value of ODFDOM attribute representationTableProtectionKeyDigestAlgorithmAttribute, See @table:protection-key-digest-algorithm- Parameters:
tableProtectionKeyDigestAlgorithmValue- The type isString
-
getTableStyleNameAttribute
Receives the value of the ODFDOM attribute representationTableStyleNameAttribute, See @table:style-name- Returns:
- - the
String, the value ornull, if the attribute is not set and no default value defined.
-
setTableStyleNameAttribute
Sets the value of ODFDOM attribute representationTableStyleNameAttribute, See @table:style-name- Parameters:
tableStyleNameValue- The type isString
-
getTableTemplateNameAttribute
Receives the value of the ODFDOM attribute representationTableTemplateNameAttribute, See @table:template-name- Returns:
- - the
String, the value ornull, if the attribute is not set and no default value defined.
-
setTableTemplateNameAttribute
Sets the value of ODFDOM attribute representationTableTemplateNameAttribute, See @table:template-name- Parameters:
tableTemplateNameValue- The type isString
-
getTableUseBandingColumnsStylesAttribute
Receives the value of the ODFDOM attribute representationTableUseBandingColumnsStylesAttribute, See @table:use-banding-columns-styles- Returns:
- - the
Boolean, the value ornull, if the attribute is not set and no default value defined.
-
setTableUseBandingColumnsStylesAttribute
Sets the value of ODFDOM attribute representationTableUseBandingColumnsStylesAttribute, See @table:use-banding-columns-styles- Parameters:
tableUseBandingColumnsStylesValue- The type isBoolean
-
getTableUseBandingRowsStylesAttribute
Receives the value of the ODFDOM attribute representationTableUseBandingRowsStylesAttribute, See @table:use-banding-rows-styles- Returns:
- - the
Boolean, the value ornull, if the attribute is not set and no default value defined.
-
setTableUseBandingRowsStylesAttribute
Sets the value of ODFDOM attribute representationTableUseBandingRowsStylesAttribute, See @table:use-banding-rows-styles- Parameters:
tableUseBandingRowsStylesValue- The type isBoolean
-
getTableUseFirstColumnStylesAttribute
Receives the value of the ODFDOM attribute representationTableUseFirstColumnStylesAttribute, See @table:use-first-column-styles- Returns:
- - the
Boolean, the value ornull, if the attribute is not set and no default value defined.
-
setTableUseFirstColumnStylesAttribute
Sets the value of ODFDOM attribute representationTableUseFirstColumnStylesAttribute, See @table:use-first-column-styles- Parameters:
tableUseFirstColumnStylesValue- The type isBoolean
-
getTableUseFirstRowStylesAttribute
Receives the value of the ODFDOM attribute representationTableUseFirstRowStylesAttribute, See @table:use-first-row-styles- Returns:
- - the
Boolean, the value ornull, if the attribute is not set and no default value defined.
-
setTableUseFirstRowStylesAttribute
Sets the value of ODFDOM attribute representationTableUseFirstRowStylesAttribute, See @table:use-first-row-styles- Parameters:
tableUseFirstRowStylesValue- The type isBoolean
-
getTableUseLastColumnStylesAttribute
Receives the value of the ODFDOM attribute representationTableUseLastColumnStylesAttribute, See @table:use-last-column-styles- Returns:
- - the
Boolean, the value ornull, if the attribute is not set and no default value defined.
-
setTableUseLastColumnStylesAttribute
Sets the value of ODFDOM attribute representationTableUseLastColumnStylesAttribute, See @table:use-last-column-styles- Parameters:
tableUseLastColumnStylesValue- The type isBoolean
-
getTableUseLastRowStylesAttribute
Receives the value of the ODFDOM attribute representationTableUseLastRowStylesAttribute, See @table:use-last-row-styles- Returns:
- - the
Boolean, the value ornull, if the attribute is not set and no default value defined.
-
setTableUseLastRowStylesAttribute
Sets the value of ODFDOM attribute representationTableUseLastRowStylesAttribute, See @table:use-last-row-styles- Parameters:
tableUseLastRowStylesValue- The type isBoolean
-
getXmlIdAttribute
Receives the value of the ODFDOM attribute representationXmlIdAttribute, See @xml:id- Returns:
- - the
String, the value ornull, if the attribute is not set and no default value defined.
-
setXmlIdAttribute
Sets the value of ODFDOM attribute representationXmlIdAttribute, See @xml:id- Parameters:
xmlIdValue- The type isString
-
newOfficeDdeSourceElement
public OfficeDdeSourceElement newOfficeDdeSourceElement(String officeDdeApplicationValue, String officeDdeItemValue, String officeDdeTopicValue) Create child element <office:dde-source>.- Parameters:
officeDdeApplicationValue- theStringvalue ofOfficeDdeApplicationAttribute, see @office:dde-application at specificationofficeDdeItemValue- theStringvalue ofOfficeDdeItemAttribute, see @office:dde-item at specificationofficeDdeTopicValue- theStringvalue ofOfficeDdeTopicAttribute, see @office:dde-topic at specification- Returns:
- the element <office:dde-source>
-
newOfficeFormsElement
Create child element <office:forms>.- Returns:
- the element <office:forms>
-
newTableDescElement
Create child element <table:desc>.Child element was added in ODF 1.2
- Returns:
- the element <table:desc>
-
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- theBooleanvalue ofTableIsActiveAttribute, see @table:is-active at specificationtableScenarioRangesValue- theStringvalue ofTableScenarioRangesAttribute, see @table:scenario-ranges at specification- Returns:
- the element <table:scenario>
-
newTableShapesElement
Create child element <table:shapes>.- Returns:
- the element <table:shapes>
-
newTableTableColumnElement
Create child element <table:table-column>.- Returns:
- the element <table:table-column>
-
newTableTableColumnGroupElement
Create child element <table:table-column-group>.- Returns:
- the element <table:table-column-group>
-
newTableTableColumnsElement
Create child element <table:table-columns>.- Returns:
- the element <table:table-columns>
-
newTableTableHeaderColumnsElement
Create child element <table:table-header-columns>.- Returns:
- the element <table:table-header-columns>
-
newTableTableHeaderRowsElement
Create child element <table:table-header-rows>.- Returns:
- the element <table:table-header-rows>
-
newTableTableRowElement
Create child element <table:table-row>.- Returns:
- the element <table:table-row>
-
newTableTableRowGroupElement
Create child element <table:table-row-group>.- Returns:
- the element <table:table-row-group>
-
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- theStringvalue ofXlinkHrefAttribute, see @xlink:href at specificationxlinkTypeValue- theStringvalue ofXlinkTypeAttribute, see @xlink:type at specification- Returns:
- the element <table:table-source>
-
newTableTitleElement
Create child element <table:title>.Child element was added in ODF 1.2
- Returns:
- the element <table:title>
-
newTextSoftPageBreakElement
Create child element <text:soft-page-break>.Child element was added in ODF 1.1
- Returns:
- the element <text:soft-page-break>
-
accept
Accept an visitor instance to allow the visitor to do some operations. Refer to visitor design pattern to get a better understanding.- Overrides:
acceptin classOdfElement- Parameters:
visitor- an instance of DefaultElementVisitor
-
isComponentRoot
public boolean isComponentRoot()- Overrides:
isComponentRootin classOdfElement
-