KickJava   Java API By Example, From Geeks To Geeks.

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


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  * A row in a table. See the TR element definition in HTML 4.01.
39  * <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>.
40  */

41 public interface HTMLTableRowElement extends HTMLElement {
42     /**
43      * This is in logical order and not in document order. The
44      * <code>rowIndex</code> does take into account sections (
45      * <code>THEAD</code>, <code>TFOOT</code>, or <code>TBODY</code>) within
46      * the table, placing <code>THEAD</code> rows first in the index,
47      * followed by <code>TBODY</code> rows, followed by <code>TFOOT</code>
48      * rows.
49      * @version DOM Level 2
50      */

51     public int getRowIndex();
52
53     /**
54      * The index of this row, relative to the current section (
55      * <code>THEAD</code>, <code>TFOOT</code>, or <code>TBODY</code>),
56      * starting from 0.
57      * @version DOM Level 2
58      */

59     public int getSectionRowIndex();
60
61     /**
62      * The collection of cells in this row.
63      * @version DOM Level 2
64      */

65     public HTMLCollection getCells();
66
67     /**
68      * Horizontal alignment of data within cells of this row. See the align
69      * attribute definition in HTML 4.01.
70      */

71     public String JavaDoc getAlign();
72     /**
73      * Horizontal alignment of data within cells of this row. See the align
74      * attribute definition in HTML 4.01.
75      */

76     public void setAlign(String JavaDoc align);
77
78     /**
79      * Background color for rows. See the bgcolor attribute definition in HTML
80      * 4.01. This attribute is deprecated in HTML 4.01.
81      */

82     public String JavaDoc getBgColor();
83     /**
84      * Background color for rows. See the bgcolor attribute definition in HTML
85      * 4.01. This attribute is deprecated in HTML 4.01.
86      */

87     public void setBgColor(String JavaDoc bgColor);
88
89     /**
90      * Alignment character for cells in a column. See the char attribute
91      * definition in HTML 4.01.
92      */

93     public String JavaDoc getCh();
94     /**
95      * Alignment character for cells in a column. See the char attribute
96      * definition in HTML 4.01.
97      */

98     public void setCh(String JavaDoc ch);
99
100     /**
101      * Offset of alignment character. See the charoff attribute definition in
102      * HTML 4.01.
103      */

104     public String JavaDoc getChOff();
105     /**
106      * Offset of alignment character. See the charoff attribute definition in
107      * HTML 4.01.
108      */

109     public void setChOff(String JavaDoc chOff);
110
111     /**
112      * Vertical alignment of data within cells of this row. See the valign
113      * attribute definition in HTML 4.01.
114      */

115     public String JavaDoc getVAlign();
116     /**
117      * Vertical alignment of data within cells of this row. See the valign
118      * attribute definition in HTML 4.01.
119      */

120     public void setVAlign(String JavaDoc vAlign);
121
122     /**
123      * Insert an empty <code>TD</code> cell into this row. If
124      * <code>index</code> is -1 or equal to the number of cells, the new
125      * cell is appended.
126      * @param index The place to insert the cell, starting from 0.
127      * @return The newly created cell.
128      * @exception DOMException
129      * INDEX_SIZE_ERR: Raised if the specified <code>index</code> is greater
130      * than the number of cells or if the index is a negative number other
131      * than -1.
132      * @version DOM Level 2
133      */

134     public HTMLElement insertCell(int index)
135                                   throws DOMException JavaDoc;
136
137     /**
138      * Delete a cell from the current row.
139      * @param index The index of the cell to delete, starting from 0. If the
140      * index is -1 the last cell in the row is deleted.
141      * @exception DOMException
142      * INDEX_SIZE_ERR: Raised if the specified <code>index</code> is greater
143      * than or equal to the number of cells or if the index is a negative
144      * number other than -1.
145      * @version DOM Level 2
146      */

147     public void deleteCell(int index)
148                            throws DOMException JavaDoc;
149
150 }
151
Popular Tags