Dead
[official-gcc.git] / gomp-20050608-branch / libjava / classpath / external / w3c_dom / org / w3c / dom / html2 / HTMLTableSectionElement.java
blob5aa6ce4402dd66f36c0eac3a73c3d3cc65d784da
1 /*
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
9 * PURPOSE.
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;
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/2003/REC-DOM-Level-2-HTML-20030109'>Document Object Model (DOM) Level 2 HTML Specification</a>.
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.
27 public String getAlign();
28 /**
29 * Horizontal alignment of data in cells. See the <code>align</code>
30 * attribute for HTMLTheadElement for details.
32 public void setAlign(String align);
34 /**
35 * Alignment character for cells in a column. See the char attribute
36 * definition in HTML 4.01.
38 public String getCh();
39 /**
40 * Alignment character for cells in a column. See the char attribute
41 * definition in HTML 4.01.
43 public void setCh(String ch);
45 /**
46 * Offset of alignment character. See the charoff attribute definition in
47 * HTML 4.01.
49 public String getChOff();
50 /**
51 * Offset of alignment character. See the charoff attribute definition in
52 * HTML 4.01.
54 public void setChOff(String chOff);
56 /**
57 * Vertical alignment of data in cells. See the <code>valign</code>
58 * attribute for HTMLTheadElement for details.
60 public String getVAlign();
61 /**
62 * Vertical alignment of data in cells. See the <code>valign</code>
63 * attribute for HTMLTheadElement for details.
65 public void setVAlign(String vAlign);
67 /**
68 * The collection of rows in this table section.
70 public HTMLCollection getRows();
72 /**
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)
87 throws DOMException;
89 /**
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
97 * other than -1.
98 * @version DOM Level 2
100 public void deleteRow(int index)
101 throws DOMException;