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. import org.w3c.dom.DOMException;
  14. /**
  15. * The <code>THEAD</code> , <code>TFOOT</code> , and <code>TBODY</code>
  16. * elements.
  17. * <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>.
  18. */
  19. public interface HTMLTableSectionElement extends HTMLElement {
  20. /**
  21. * Horizontal alignment of data in cells. See the <code>align</code>
  22. * attribute for HTMLTheadElement for details.
  23. */
  24. public String getAlign();
  25. public void setAlign(String align);
  26. /**
  27. * Alignment character for cells in a column. See the char attribute
  28. * definition in HTML 4.0.
  29. */
  30. public String getCh();
  31. public void setCh(String ch);
  32. /**
  33. * Offset of alignment character. See the charoff attribute definition
  34. * in HTML 4.0.
  35. */
  36. public String getChOff();
  37. public void setChOff(String chOff);
  38. /**
  39. * Vertical alignment of data in cells. See the <code>valign</code>
  40. * attribute for HTMLTheadElement for details.
  41. */
  42. public String getVAlign();
  43. public void setVAlign(String vAlign);
  44. /**
  45. * The collection of rows in this table section.
  46. */
  47. public HTMLCollection getRows();
  48. /**
  49. * Insert a row into this section. The new row is inserted immediately
  50. * before the current <code>index</code> th row in this section. If
  51. * <code>index</code> is equal to the number of rows in this section, the
  52. * new row is appended.
  53. * @param index The row number where to insert a new row. This index
  54. * starts from 0 and is relative only to the rows contained inside this
  55. * section, not all the rows in the table.
  56. * @return The newly created row.
  57. * @exception DOMException
  58. * INDEX_SIZE_ERR: Raised if the specified index is greater than the
  59. * number of rows of if the index is neagative.
  60. */
  61. public HTMLElement insertRow(int index)
  62. throws DOMException;
  63. /**
  64. * Delete a row from this section.
  65. * @param index The index of the row to be deleted. This index starts
  66. * from 0 and is relative only to the rows contained inside this
  67. * section, not all the rows in the table.
  68. * @exception DOMException
  69. * INDEX_SIZE_ERR: Raised if the specified index is greater than or
  70. * equal to the number of rows or if the index is negative.
  71. */
  72. public void deleteRow(int index)
  73. throws DOMException;
  74. }