01: /*
02: * Copyright (c) 2000 World Wide Web Consortium,
03: * (Massachusetts Institute of Technology, Institut National de
04: * Recherche en Informatique et en Automatique, Keio University). All
05: * Rights Reserved. This program is distributed under the W3C's Software
06: * Intellectual Property License. This program is distributed in the
07: * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
08: * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
09: * 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;
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 getAlign();
28:
29: public void setAlign(String align);
30:
31: /**
32: * Alignment character for cells in a column. See the char attribute
33: * definition in HTML 4.0.
34: */
35: public String getCh();
36:
37: public void setCh(String ch);
38:
39: /**
40: * Offset of alignment character. See the charoff attribute definition
41: * in HTML 4.0.
42: */
43: public String getChOff();
44:
45: public void setChOff(String chOff);
46:
47: /**
48: * Vertical alignment of data in cells. See the <code>valign</code>
49: * attribute for HTMLTheadElement for details.
50: */
51: public String getVAlign();
52:
53: public void setVAlign(String vAlign);
54:
55: /**
56: * The collection of rows in this table section.
57: */
58: public HTMLCollection getRows();
59:
60: /**
61: * Insert a row into this section. The new row is inserted immediately
62: * before the current <code>index</code> th row in this section. If
63: * <code>index</code> is equal to the number of rows in this section, the
64: * new row is appended.
65: * @param index The row number where to insert a new row. This index
66: * starts from 0 and is relative only to the rows contained inside this
67: * section, not all the rows in the table.
68: * @return The newly created row.
69: * @exception DOMException
70: * INDEX_SIZE_ERR: Raised if the specified index is greater than the
71: * number of rows of if the index is neagative.
72: */
73: public HTMLElement insertRow(int index) throws DOMException;
74:
75: /**
76: * Delete a row from this section.
77: * @param index The index of the row to be deleted. This index starts
78: * from 0 and is relative only to the rows contained inside this
79: * section, not all the rows in the table.
80: * @exception DOMException
81: * INDEX_SIZE_ERR: Raised if the specified index is greater than or
82: * equal to the number of rows or if the index is negative.
83: */
84: public void deleteRow(int index) throws DOMException;
85:
86: }
|