KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3c > dom > html > HTMLTableSectionElement


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
13 package org.w3c.dom.html;
14
15 import org.w3c.dom.DOMException JavaDoc;
16
17 /**
18  * The <code>THEAD</code> , <code>TFOOT</code> , and <code>TBODY</code>
19  * elements.
20  * <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>.
21  */

22 public interface HTMLTableSectionElement extends HTMLElement {
23     /**
24      * Horizontal alignment of data in cells. See the <code>align</code>
25      * attribute for HTMLTheadElement for details.
26      */

27     public String JavaDoc getAlign();
28     public void setAlign(String JavaDoc align);
29
30     /**
31      * Alignment character for cells in a column. See the char attribute
32      * definition in HTML 4.0.
33      */

34     public String JavaDoc getCh();
35     public void setCh(String JavaDoc ch);
36
37     /**
38      * Offset of alignment character. See the charoff attribute definition
39      * in HTML 4.0.
40      */

41     public String JavaDoc getChOff();
42     public void setChOff(String JavaDoc chOff);
43
44     /**
45      * Vertical alignment of data in cells. See the <code>valign</code>
46      * attribute for HTMLTheadElement for details.
47      */

48     public String JavaDoc getVAlign();
49     public void setVAlign(String JavaDoc vAlign);
50
51     /**
52      * The collection of rows in this table section.
53      */

54     public HTMLCollection getRows();
55
56     /**
57      * Insert a row into this section. The new row is inserted immediately
58      * before the current <code>index</code> th row in this section. If
59      * <code>index</code> is equal to the number of rows in this section, the
60      * new row is appended.
61      * @param index The row number where to insert a new row. This index
62      * starts from 0 and is relative only to the rows contained inside this
63      * section, not all the rows in the table.
64      * @return The newly created row.
65      * @exception DOMException
66      * INDEX_SIZE_ERR: Raised if the specified index is greater than the
67      * number of rows of if the index is neagative.
68      */

69     public HTMLElement insertRow(int index)
70                                  throws DOMException JavaDoc;
71
72     /**
73      * Delete a row from this section.
74      * @param index The index of the row to be deleted. This index starts
75      * from 0 and is relative only to the rows contained inside this
76      * section, not all the rows in the table.
77      * @exception DOMException
78      * INDEX_SIZE_ERR: Raised if the specified index is greater than or
79      * equal to the number of rows or if the index is negative.
80      */

81     public void deleteRow(int index)
82                           throws DOMException JavaDoc;
83
84 }
85
86
Popular Tags