KickJava   Java API By Example, From Geeks To Geeks.

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


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  * A row in a table. See the TR element definition in HTML 4.0.
19  * <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>.
20  */

21 public interface HTMLTableRowElement extends HTMLElement {
22     /**
23      * The index of this row, relative to the entire table, starting from 0.
24      * This is in document tree order and not display order. The
25      * <code>rowIndex</code> does not take into account sections (
26      * <code>THEAD</code> , <code>TFOOT</code> , or <code>TBODY</code> )
27      * within the table.
28      */

29     public int getRowIndex();
30
31     /**
32      * The index of this row, relative to the current section (
33      * <code>THEAD</code> , <code>TFOOT</code> , or <code>TBODY</code> ),
34      * starting from 0.
35      */

36     public int getSectionRowIndex();
37
38     /**
39      * The collection of cells in this row.
40      */

41     public HTMLCollection getCells();
42
43     /**
44      * Horizontal alignment of data within cells of this row. See the align
45      * attribute definition in HTML 4.0.
46      */

47     public String JavaDoc getAlign();
48     public void setAlign(String JavaDoc align);
49
50     /**
51      * Background color for rows. See the bgcolor attribute definition in
52      * HTML 4.0. This attribute is deprecated in HTML 4.0.
53      */

54     public String JavaDoc getBgColor();
55     public void setBgColor(String JavaDoc bgColor);
56
57     /**
58      * Alignment character for cells in a column. See the char attribute
59      * definition in HTML 4.0.
60      */

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

68     public String JavaDoc getChOff();
69     public void setChOff(String JavaDoc chOff);
70
71     /**
72      * Vertical alignment of data within cells of this row. See the valign
73      * attribute definition in HTML 4.0.
74      */

75     public String JavaDoc getVAlign();
76     public void setVAlign(String JavaDoc vAlign);
77
78     /**
79      * Insert an empty <code>TD</code> cell into this row. If
80      * <code>index</code> is equal to the number of cells, the new cell is
81      * appended
82      * @param index The place to insert the cell, starting from 0.
83      * @return The newly created cell.
84      * @exception DOMException
85      * INDEX_SIZE_ERR: Raised if the specified <code>index</code> is
86      * greater than the number of cells or if the index is negative.
87      */

88     public HTMLElement insertCell(int index)
89                                   throws DOMException JavaDoc;
90
91     /**
92      * Delete a cell from the current row.
93      * @param index The index of the cell to delete, starting from 0.
94      * @exception DOMException
95      * INDEX_SIZE_ERR: Raised if the specified <code>index</code> is
96      * greater than or equal to the number of cells or if the index is
97      * negative.
98      */

99     public void deleteCell(int index)
100                            throws DOMException JavaDoc;
101
102 }
103
104
Popular Tags