Package org.w3c.dom.mathml
Interface MathMLTableRowElement
- All Superinterfaces:
Element,MathMLElement,MathMLPresentationElement,Node
- All Known Subinterfaces:
MathMLLabeledRowElement
- All Known Implementing Classes:
AbstractTableRow,Mlabeledtr,Mtr
This interface extends the MathMLPresentationElement interface for the
MathML table or matrix row element mtr.
-
Field Summary
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 -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteCell(int index) A convenience method to delete a cell in the row.getCells()A MathMLNodeList consisting of the cells of the row.A string representing an override of the column alignment specified in the containing mtable.A string specifying how the alignment groups within the cells of each row are to be aligned with the corresponding items above or below them in the same column.A string representing an override of the row alignment specified in the containing mtable.insertCell(MathMLTableCellElement newCell, int index) A convenience method to insert a new cell in the row.insertEmptyCell(int index) A convenience method to insert a new (empty) cell in the row.setCell(MathMLTableCellElement newCell, int index) A convenience method to set the value of a cell in the row to newCell.voidsetColumnalign(String columnalign) setter for the columnalign attribute.voidsetGroupalign(String groupalign) setter for the groupalign attribute.voidsetRowalign(String rowalign) setter for the rowalign attribute.Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSMethods inherited from interface org.w3c.dom.mathml.MathMLElement
getClassName, getHref, getId, getMathElementStyle, getOwnerMathElement, getXref, setClassName, setHref, setId, setMathElementStyle, setXrefMethods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Method Details
-
getRowalign
String getRowalign()A string representing an override of the row alignment specified in the containing mtable. Allowed values are top, bottom, center, baseline, and axis.- Returns:
- value of the rowalign attribute.
-
setRowalign
setter for the rowalign attribute.- Parameters:
rowalign- new value for rowalign.- See Also:
-
getColumnalign
String getColumnalign()A string representing an override of the column alignment specified in the containing mtable. Allowed values are left, center, and right.- Returns:
- value of the columnalign attribute.
-
setColumnalign
setter for the columnalign attribute.- Parameters:
columnalign- new value for columnalign.- See Also:
-
getGroupalign
String getGroupalign()A string specifying how the alignment groups within the cells of each row are to be aligned with the corresponding items above or below them in the same column. The string consists of a sequence of braced group alignment lists. Each group alignment list is a space-separated sequence, each of which can have the following values: left, right, center, or decimalpoint.- Returns:
- value of the groupalign attribute.
-
setGroupalign
setter for the groupalign attribute.- Parameters:
groupalign- new value for groupalign.- See Also:
-
getCells
MathMLNodeList getCells()A MathMLNodeList consisting of the cells of the row. Note that this does not include the label if this is a MathMLLabeledRowElement!- Returns:
- value of the cells attribute.
-
insertEmptyCell
A convenience method to insert a new (empty) cell in the row.- Parameters:
index- Index of the cell before which the new cell is to be inserted, where the first cell is numbered 0. If index is equal to the current number of cells, the new cell is appended as the last cell of the row. Note that the index will differ from the index of the corresponding Node in the collection returned by Node::childNodes if this is a MathMLLabeledRowElement!- Returns:
- Returns the MathMLTableCellElement representing the mtd element being inserted.
- Throws:
DOMException- INDEX_SIZE_ERR: Raised if index is greater than the current number of cells of this mtr element.
-
insertCell
A convenience method to insert a new cell in the row.- Parameters:
newCell- A MathMLTableCellElement representing the new cell (mtd element) to be inserted.index- Index of the cell before which the new cell is to be inserted, where the first cell is numbered 0. If index equals the current number of cells, the new cell is appended as the last cell of the row. Note that the index will differ from the index of the corresponding Node in Node::childNodes if this is a MathMLLabeledRowElement!- Returns:
- The MathMLTableCellElement representing the mtd element being inserted.
- Throws:
DOMException- INDEX_SIZE_ERR: Raised if index is greater than the current number of cells of this mtr element.
-
setCell
A convenience method to set the value of a cell in the row to newCell. If index is equal to the current number of cells, newCell is appended as the last cell in the row.- Parameters:
newCell- A MathMLTableCellElement representing the cell (mtd element) that is to be inserted.index- Index of the cell that is to be replaced by the new cell, where the first cell is numbered 0. Note that the index will differ from the index of the corresponding Node in the collection returned by Node::childNodes if this is a MathMLLabeledRowElement!- Returns:
- The MathMLTableCellElement child of this MathMLTableRowElement representing the new mtd element.
-
deleteCell
void deleteCell(int index) A convenience method to delete a cell in the row.- Parameters:
index- Index of cell to be deleted. Note that the count will differ from the index-th child node if this is a MathMLLabeledRowElement!
-