2 * Copyright (c) 2003 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
10 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
13 package org
.w3c
.dom
.html2
;
15 import org
.w3c
.dom
.DOMException
;
18 * The <code>THEAD</code>, <code>TFOOT</code>, and <code>TBODY</code>
20 * <p>See also the <a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>Document Object Model (DOM) Level 2 HTML Specification</a>.
22 public interface HTMLTableSectionElement
extends HTMLElement
{
24 * Horizontal alignment of data in cells. See the <code>align</code>
25 * attribute for HTMLTheadElement for details.
27 public String
getAlign();
29 * Horizontal alignment of data in cells. See the <code>align</code>
30 * attribute for HTMLTheadElement for details.
32 public void setAlign(String align
);
35 * Alignment character for cells in a column. See the char attribute
36 * definition in HTML 4.01.
38 public String
getCh();
40 * Alignment character for cells in a column. See the char attribute
41 * definition in HTML 4.01.
43 public void setCh(String ch
);
46 * Offset of alignment character. See the charoff attribute definition in
49 public String
getChOff();
51 * Offset of alignment character. See the charoff attribute definition in
54 public void setChOff(String chOff
);
57 * Vertical alignment of data in cells. See the <code>valign</code>
58 * attribute for HTMLTheadElement for details.
60 public String
getVAlign();
62 * Vertical alignment of data in cells. See the <code>valign</code>
63 * attribute for HTMLTheadElement for details.
65 public void setVAlign(String vAlign
);
68 * The collection of rows in this table section.
70 public HTMLCollection
getRows();
73 * Insert a row into this section. The new row is inserted immediately
74 * before the current <code>index</code>th row in this section. If
75 * <code>index</code> is -1 or equal to the number of rows in this
76 * section, the new row is appended.
77 * @param index The row number where to insert a new row. This index
78 * starts from 0 and is relative only to the rows contained inside
79 * this section, not all the rows in the table.
80 * @return The newly created row.
81 * @exception DOMException
82 * INDEX_SIZE_ERR: Raised if the specified index is greater than the
83 * number of rows of if the index is a negative number other than -1.
84 * @version DOM Level 2
86 public HTMLElement
insertRow(int index
)
90 * Delete a row from this section.
91 * @param index The index of the row to be deleted, or -1 to delete the
92 * last row. This index starts from 0 and is relative only to the rows
93 * contained inside this section, not all the rows in the table.
94 * @exception DOMException
95 * INDEX_SIZE_ERR: Raised if the specified index is greater than or
96 * equal to the number of rows or if the index is a negative number
98 * @version DOM Level 2
100 public void deleteRow(int index
)