Interface HTMLTableCellElement

All Superinterfaces:
Element, HTMLElement, Node

public interface HTMLTableCellElement extends HTMLElement
The object used to represent the TH and TD elements. See the TD element definition in HTML 4.0.

See also the Document Object Model (DOM) Level 2 Specification.

Since:
1.4, DOM Level 2
  • Method Details Link icon

    • getCellIndex Link icon

      int getCellIndex()
      The index of this cell in the row, starting from 0. This index is in document tree order and not display order.
    • getAbbr Link icon

      String getAbbr()
      Abbreviation for header cells. See the abbr attribute definition in HTML 4.0.
    • setAbbr Link icon

      void setAbbr(String abbr)
    • getAlign Link icon

      String getAlign()
      Horizontal alignment of data in cell. See the align attribute definition in HTML 4.0.
    • setAlign Link icon

      void setAlign(String align)
    • getAxis Link icon

      String getAxis()
      Names group of related headers. See the axis attribute definition in HTML 4.0.
    • setAxis Link icon

      void setAxis(String axis)
    • getBgColor Link icon

      String getBgColor()
      Cell background color. See the bgcolor attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
    • setBgColor Link icon

      void setBgColor(String bgColor)
    • getCh Link icon

      String getCh()
      Alignment character for cells in a column. See the char attribute definition in HTML 4.0.
    • setCh Link icon

      void setCh(String ch)
    • getChOff Link icon

      String getChOff()
      Offset of alignment character. See the charoff attribute definition in HTML 4.0.
    • setChOff Link icon

      void setChOff(String chOff)
    • getColSpan Link icon

      int getColSpan()
      Number of columns spanned by cell. See the colspan attribute definition in HTML 4.0.
    • setColSpan Link icon

      void setColSpan(int colSpan)
    • getHeaders Link icon

      String getHeaders()
      List of id attribute values for header cells. See the headers attribute definition in HTML 4.0.
    • setHeaders Link icon

      void setHeaders(String headers)
    • getHeight Link icon

      String getHeight()
      Cell height. See the height attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
    • setHeight Link icon

      void setHeight(String height)
    • getNoWrap Link icon

      boolean getNoWrap()
      Suppress word wrapping. See the nowrap attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
    • setNoWrap Link icon

      void setNoWrap(boolean noWrap)
    • getRowSpan Link icon

      int getRowSpan()
      Number of rows spanned by cell. See the rowspan attribute definition in HTML 4.0.
    • setRowSpan Link icon

      void setRowSpan(int rowSpan)
    • getScope Link icon

      String getScope()
      Scope covered by header cells. See the scope attribute definition in HTML 4.0.
    • setScope Link icon

      void setScope(String scope)
    • getVAlign Link icon

      String getVAlign()
      Vertical alignment of data in cell. See the valign attribute definition in HTML 4.0.
    • setVAlign Link icon

      void setVAlign(String vAlign)
    • getWidth Link icon

      String getWidth()
      Cell width. See the width attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
    • setWidth Link icon

      void setWidth(String width)