1. /*
  2. * Copyright (c) 2000 World Wide Web Consortium,
  3. * (Massachusetts Institute of Technology, Institut National de
  4. * Recherche en Informatique et en Automatique, Keio University). All
  5. * Rights Reserved. This program is distributed under the W3C's Software
  6. * Intellectual Property License. This program is distributed in the
  7. * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  8. * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  9. * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
  10. * details.
  11. */
  12. package org.w3c.dom.html;
  13. /**
  14. * The object used to represent the <code>TH</code> and <code>TD</code>
  15. * elements. See the TD element definition in HTML 4.0.
  16. * <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
  17. */
  18. public interface HTMLTableCellElement extends HTMLElement {
  19. /**
  20. * The index of this cell in the row, starting from 0. This index is in
  21. * document tree order and not display order.
  22. */
  23. public int getCellIndex();
  24. /**
  25. * Abbreviation for header cells. See the abbr attribute definition in
  26. * HTML 4.0.
  27. */
  28. public String getAbbr();
  29. public void setAbbr(String abbr);
  30. /**
  31. * Horizontal alignment of data in cell. See the align attribute
  32. * definition in HTML 4.0.
  33. */
  34. public String getAlign();
  35. public void setAlign(String align);
  36. /**
  37. * Names group of related headers. See the axis attribute definition in
  38. * HTML 4.0.
  39. */
  40. public String getAxis();
  41. public void setAxis(String axis);
  42. /**
  43. * Cell background color. See the bgcolor attribute definition in HTML
  44. * 4.0. This attribute is deprecated in HTML 4.0.
  45. */
  46. public String getBgColor();
  47. public void setBgColor(String bgColor);
  48. /**
  49. * Alignment character for cells in a column. See the char attribute
  50. * definition in HTML 4.0.
  51. */
  52. public String getCh();
  53. public void setCh(String ch);
  54. /**
  55. * Offset of alignment character. See the charoff attribute definition
  56. * in HTML 4.0.
  57. */
  58. public String getChOff();
  59. public void setChOff(String chOff);
  60. /**
  61. * Number of columns spanned by cell. See the colspan attribute
  62. * definition in HTML 4.0.
  63. */
  64. public int getColSpan();
  65. public void setColSpan(int colSpan);
  66. /**
  67. * List of <code>id</code> attribute values for header cells. See the
  68. * headers attribute definition in HTML 4.0.
  69. */
  70. public String getHeaders();
  71. public void setHeaders(String headers);
  72. /**
  73. * Cell height. See the height attribute definition in HTML 4.0. This
  74. * attribute is deprecated in HTML 4.0.
  75. */
  76. public String getHeight();
  77. public void setHeight(String height);
  78. /**
  79. * Suppress word wrapping. See the nowrap attribute definition in HTML
  80. * 4.0. This attribute is deprecated in HTML 4.0.
  81. */
  82. public boolean getNoWrap();
  83. public void setNoWrap(boolean noWrap);
  84. /**
  85. * Number of rows spanned by cell. See the rowspan attribute definition
  86. * in HTML 4.0.
  87. */
  88. public int getRowSpan();
  89. public void setRowSpan(int rowSpan);
  90. /**
  91. * Scope covered by header cells. See the scope attribute definition in
  92. * HTML 4.0.
  93. */
  94. public String getScope();
  95. public void setScope(String scope);
  96. /**
  97. * Vertical alignment of data in cell. See the valign attribute
  98. * definition in HTML 4.0.
  99. */
  100. public String getVAlign();
  101. public void setVAlign(String vAlign);
  102. /**
  103. * Cell width. See the width attribute definition in HTML 4.0. This
  104. * attribute is deprecated in HTML 4.0.
  105. */
  106. public String getWidth();
  107. public void setWidth(String width);
  108. }