Interface MathMLTableRowElement

    • 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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteCell​(int index)
      A convenience method to delete a cell in the row.
      MathMLNodeList getCells()
      A MathMLNodeList consisting of the cells of the row.
      java.lang.String getColumnalign()
      A string representing an override of the column alignment specified in the containing mtable.
      java.lang.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.
      java.lang.String getRowalign()
      A string representing an override of the row alignment specified in the containing mtable.
      MathMLTableCellElement insertCell​(MathMLTableCellElement newCell, int index)
      A convenience method to insert a new cell in the row.
      MathMLTableCellElement insertEmptyCell​(int index)
      A convenience method to insert a new (empty) cell in the row.
      MathMLTableCellElement setCell​(MathMLTableCellElement newCell, int index)
      A convenience method to set the value of a cell in the row to newCell.
      void setColumnalign​(java.lang.String columnalign)
      setter for the columnalign attribute.
      void setGroupalign​(java.lang.String groupalign)
      setter for the groupalign attribute.
      void setRowalign​(java.lang.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, setIdAttributeNS
      • Methods 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 Detail

      • getRowalign

        java.lang.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

        void setRowalign​(java.lang.String rowalign)
        setter for the rowalign attribute.
        Parameters:
        rowalign - new value for rowalign.
        See Also:
        getRowalign()
      • getColumnalign

        java.lang.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

        void setColumnalign​(java.lang.String columnalign)
        setter for the columnalign attribute.
        Parameters:
        columnalign - new value for columnalign.
        See Also:
        getColumnalign()
      • getGroupalign

        java.lang.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

        void setGroupalign​(java.lang.String groupalign)
        setter for the groupalign attribute.
        Parameters:
        groupalign - new value for groupalign.
        See Also:
        getGroupalign()
      • 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

        MathMLTableCellElement insertEmptyCell​(int index)
                                        throws org.w3c.dom.DOMException
        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:
        org.w3c.dom.DOMException - INDEX_SIZE_ERR: Raised if index is greater than the current number of cells of this mtr element.
      • insertCell

        MathMLTableCellElement insertCell​(MathMLTableCellElement newCell,
                                          int index)
                                   throws org.w3c.dom.DOMException
        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:
        org.w3c.dom.DOMException - INDEX_SIZE_ERR: Raised if index is greater than the current number of cells of this mtr element.
      • setCell

        MathMLTableCellElement setCell​(MathMLTableCellElement newCell,
                                       int index)
        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!