KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2     GNU LESSER GENERAL PUBLIC LICENSE
3     Copyright (C) 2006 The Lobo Project
4
5     This library is free software; you can redistribute it and/or
6     modify it under the terms of the GNU Lesser General Public
7     License as published by the Free Software Foundation; either
8     version 2.1 of the License, or (at your option) any later version.
9
10     This library is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13     Lesser General Public License for more details.
14
15     You should have received a copy of the GNU Lesser General Public
16     License along with this library; if not, write to the Free Software
17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19     Contact info: xamjadmin@users.sourceforge.net
20 */

21 /*
22  * Copyright (c) 2003 World Wide Web Consortium,
23  * (Massachusetts Institute of Technology, Institut National de
24  * Recherche en Informatique et en Automatique, Keio University). All
25  * Rights Reserved. This program is distributed under the W3C's Software
26  * Intellectual Property License. This program is distributed in the
27  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
28  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
29  * PURPOSE.
30  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
31  */

32
33 package org.w3c.dom.html2;
34
35 import org.w3c.dom.DOMException JavaDoc;
36
37 /**
38  * The <code>THEAD</code>, <code>TFOOT</code>, and <code>TBODY</code>
39  * elements.
40  * <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>.
41  */

42 public interface HTMLTableSectionElement extends HTMLElement {
43     /**
44      * Horizontal alignment of data in cells. See the <code>align</code>
45      * attribute for HTMLTheadElement for details.
46      */

47     public String JavaDoc getAlign();
48     /**
49      * Horizontal alignment of data in cells. See the <code>align</code>
50      * attribute for HTMLTheadElement for details.
51      */

52     public void setAlign(String JavaDoc align);
53
54     /**
55      * Alignment character for cells in a column. See the char attribute
56      * definition in HTML 4.01.
57      */

58     public String JavaDoc getCh();
59     /**
60      * Alignment character for cells in a column. See the char attribute
61      * definition in HTML 4.01.
62      */

63     public void setCh(String JavaDoc ch);
64
65     /**
66      * Offset of alignment character. See the charoff attribute definition in
67      * HTML 4.01.
68      */

69     public String JavaDoc getChOff();
70     /**
71      * Offset of alignment character. See the charoff attribute definition in
72      * HTML 4.01.
73      */

74     public void setChOff(String JavaDoc chOff);
75
76     /**
77      * Vertical alignment of data in cells. See the <code>valign</code>
78      * attribute for HTMLTheadElement for details.
79      */

80     public String JavaDoc getVAlign();
81     /**
82      * Vertical alignment of data in cells. See the <code>valign</code>
83      * attribute for HTMLTheadElement for details.
84      */

85     public void setVAlign(String JavaDoc vAlign);
86
87     /**
88      * The collection of rows in this table section.
89      */

90     public HTMLCollection getRows();
91
92     /**
93      * Insert a row into this section. The new row is inserted immediately
94      * before the current <code>index</code>th row in this section. If
95      * <code>index</code> is -1 or equal to the number of rows in this
96      * section, the new row is appended.
97      * @param index The row number where to insert a new row. This index
98      * starts from 0 and is relative only to the rows contained inside
99      * this section, not all the rows in the table.
100      * @return The newly created row.
101      * @exception DOMException
102      * INDEX_SIZE_ERR: Raised if the specified index is greater than the
103      * number of rows of if the index is a negative number other than -1.
104      * @version DOM Level 2
105      */

106     public HTMLElement insertRow(int index)
107                                  throws DOMException JavaDoc;
108
109     /**
110      * Delete a row from this section.
111      * @param index The index of the row to be deleted, or -1 to delete the
112      * last row. This index starts from 0 and is relative only to the rows
113      * contained inside this section, not all the rows in the table.
114      * @exception DOMException
115      * INDEX_SIZE_ERR: Raised if the specified index is greater than or
116      * equal to the number of rows or if the index is a negative number
117      * other than -1.
118      * @version DOM Level 2
119      */

120     public void deleteRow(int index)
121                           throws DOMException JavaDoc;
122
123 }
124
Popular Tags