Class HTMLTableElementImpl

    • Constructor Detail

      • HTMLTableElementImpl

        public HTMLTableElementImpl()
      • HTMLTableElementImpl

        public HTMLTableElementImpl​(java.lang.String name)
    • Method Detail

      • setCaption

        public void setCaption​(HTMLTableCaptionElement caption)
                        throws org.w3c.dom.DOMException
        Description copied from interface: HTMLTableElement
        Returns the table's CAPTION, or void if none exists.
        Specified by:
        setCaption in interface HTMLTableElement
        Throws:
        org.w3c.dom.DOMException - HIERARCHY_REQUEST_ERR: if the element is not a CAPTION.
      • setTHead

        public void setTHead​(HTMLTableSectionElement tHead)
                      throws org.w3c.dom.DOMException
        Description copied from interface: HTMLTableElement
        Returns the table's THEAD, or null if none exists.
        Specified by:
        setTHead in interface HTMLTableElement
        Throws:
        org.w3c.dom.DOMException - HIERARCHY_REQUEST_ERR: if the element is not a THEAD.
      • setTFoot

        public void setTFoot​(HTMLTableSectionElement tFoot)
                      throws org.w3c.dom.DOMException
        Description copied from interface: HTMLTableElement
        Returns the table's TFOOT, or null if none exists.
        Specified by:
        setTFoot in interface HTMLTableElement
        Throws:
        org.w3c.dom.DOMException - HIERARCHY_REQUEST_ERR: if the element is not a TFOOT.
      • getAlign

        public java.lang.String getAlign()
        Description copied from interface: HTMLTableElement
        Specifies the table's position with respect to the rest of the document. See the align attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
        Specified by:
        getAlign in interface HTMLTableElement
      • setAlign

        public void setAlign​(java.lang.String align)
        Description copied from interface: HTMLTableElement
        Specifies the table's position with respect to the rest of the document. See the align attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
        Specified by:
        setAlign in interface HTMLTableElement
      • getBgColor

        public java.lang.String getBgColor()
        Description copied from interface: HTMLTableElement
        Cell background color. See the bgcolor attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
        Specified by:
        getBgColor in interface HTMLTableElement
      • setBgColor

        public void setBgColor​(java.lang.String bgColor)
        Description copied from interface: HTMLTableElement
        Cell background color. See the bgcolor attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
        Specified by:
        setBgColor in interface HTMLTableElement
      • getBorder

        public java.lang.String getBorder()
        Description copied from interface: HTMLTableElement
        The width of the border around the table. See the border attribute definition in HTML 4.01.
        Specified by:
        getBorder in interface HTMLTableElement
      • setBorder

        public void setBorder​(java.lang.String border)
        Description copied from interface: HTMLTableElement
        The width of the border around the table. See the border attribute definition in HTML 4.01.
        Specified by:
        setBorder in interface HTMLTableElement
      • getCellPadding

        public java.lang.String getCellPadding()
        Description copied from interface: HTMLTableElement
        Specifies the horizontal and vertical space between cell content and cell borders. See the cellpadding attribute definition in HTML 4.01.
        Specified by:
        getCellPadding in interface HTMLTableElement
      • setCellPadding

        public void setCellPadding​(java.lang.String cellPadding)
        Description copied from interface: HTMLTableElement
        Specifies the horizontal and vertical space between cell content and cell borders. See the cellpadding attribute definition in HTML 4.01.
        Specified by:
        setCellPadding in interface HTMLTableElement
      • getCellSpacing

        public java.lang.String getCellSpacing()
        Description copied from interface: HTMLTableElement
        Specifies the horizontal and vertical separation between cells. See the cellspacing attribute definition in HTML 4.01.
        Specified by:
        getCellSpacing in interface HTMLTableElement
      • setCellSpacing

        public void setCellSpacing​(java.lang.String cellSpacing)
        Description copied from interface: HTMLTableElement
        Specifies the horizontal and vertical separation between cells. See the cellspacing attribute definition in HTML 4.01.
        Specified by:
        setCellSpacing in interface HTMLTableElement
      • getFrame

        public java.lang.String getFrame()
        Description copied from interface: HTMLTableElement
        Specifies which external table borders to render. See the frame attribute definition in HTML 4.01.
        Specified by:
        getFrame in interface HTMLTableElement
      • setFrame

        public void setFrame​(java.lang.String frame)
        Description copied from interface: HTMLTableElement
        Specifies which external table borders to render. See the frame attribute definition in HTML 4.01.
        Specified by:
        setFrame in interface HTMLTableElement
      • getRules

        public java.lang.String getRules()
        Description copied from interface: HTMLTableElement
        Specifies which internal table borders to render. See the rules attribute definition in HTML 4.01.
        Specified by:
        getRules in interface HTMLTableElement
      • setRules

        public void setRules​(java.lang.String rules)
        Description copied from interface: HTMLTableElement
        Specifies which internal table borders to render. See the rules attribute definition in HTML 4.01.
        Specified by:
        setRules in interface HTMLTableElement
      • getSummary

        public java.lang.String getSummary()
        Description copied from interface: HTMLTableElement
        Description about the purpose or structure of a table. See the summary attribute definition in HTML 4.01.
        Specified by:
        getSummary in interface HTMLTableElement
      • setSummary

        public void setSummary​(java.lang.String summary)
        Description copied from interface: HTMLTableElement
        Description about the purpose or structure of a table. See the summary attribute definition in HTML 4.01.
        Specified by:
        setSummary in interface HTMLTableElement
      • getWidth

        public java.lang.String getWidth()
        Description copied from interface: HTMLTableElement
        Specifies the desired table width. See the width attribute definition in HTML 4.01.
        Specified by:
        getWidth in interface HTMLTableElement
      • setWidth

        public void setWidth​(java.lang.String width)
        Description copied from interface: HTMLTableElement
        Specifies the desired table width. See the width attribute definition in HTML 4.01.
        Specified by:
        setWidth in interface HTMLTableElement
      • getHeightLength

        public HtmlLength getHeightLength​(int availHeight)
      • getWidthLength

        public HtmlLength getWidthLength​(int availWidth)
      • insertRow

        public HTMLElement insertRow​(int index)
                              throws org.w3c.dom.DOMException
        Inserts a row at the index given. If index is -1, the row is appended as the last row.
        Specified by:
        insertRow in interface HTMLTableElement
        Parameters:
        index - The row number where to insert a new row. This index starts from 0 and is relative to the logical order (not document order) of all the rows contained inside the table.
        Returns:
        The newly created row.
        Throws:
        org.w3c.dom.DOMException - INDEX_SIZE_ERR: Raised if the specified index is greater than the number of rows or if the index is a negative number other than -1.
      • deleteRow

        public void deleteRow​(int index)
                       throws org.w3c.dom.DOMException
        Description copied from interface: HTMLTableElement
        Delete a table row.
        Specified by:
        deleteRow in interface HTMLTableElement
        Parameters:
        index - The index of the row to be deleted. This index starts from 0 and is relative to the logical order (not document order) of all the rows contained inside the table. If the index is -1 the last row in the table is deleted.
        Throws:
        org.w3c.dom.DOMException - INDEX_SIZE_ERR: Raised if the specified index is greater than or equal to the number of rows or if the index is a negative number other than -1.