1 /* 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * 4 * This code is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License version 2 only, as 6 * published by the Free Software Foundation. Oracle designates this 7 * particular file as subject to the "Classpath" exception as provided 8 * by Oracle in the LICENSE file that accompanied this code. 9 * 10 * This code is distributed in the hope that it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13 * version 2 for more details (a copy is included in the LICENSE file that 14 * accompanied this code). 15 * 16 * You should have received a copy of the GNU General Public License version 17 * 2 along with this work; if not, write to the Free Software Foundation, 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19 * 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 21 * or visit www.oracle.com if you need additional information or have any 22 * questions. 23 */ 24 25 /* 26 * This file is available under and governed by the GNU General Public 27 * License version 2 only, as published by the Free Software Foundation. 28 * However, the following notice accompanied the original version of this 29 * file and, per its terms, should not be removed: 30 * 31 * Copyright (c) 2000 World Wide Web Consortium, 32 * (Massachusetts Institute of Technology, Institut National de 33 * Recherche en Informatique et en Automatique, Keio University). All 34 * Rights Reserved. This program is distributed under the W3C's Software 35 * Intellectual Property License. This program is distributed in the 36 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even 37 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 38 * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more 39 * details. 40 */ 41 42 package org.w3c.dom.html; 43 44 import org.w3c.dom.DOMException; 45 46 /** 47 * The <code>THEAD</code> , <code>TFOOT</code> , and <code>TBODY</code> 48 * elements. 49 * <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>. 50 * 51 * @since 1.4, DOM Level 2 52 */ 53 public interface HTMLTableSectionElement extends HTMLElement { 54 /** 55 * Horizontal alignment of data in cells. See the <code>align</code> 56 * attribute for HTMLTheadElement for details. 57 */ getAlign()58 public String getAlign(); setAlign(String align)59 public void setAlign(String align); 60 61 /** 62 * Alignment character for cells in a column. See the char attribute 63 * definition in HTML 4.0. 64 */ getCh()65 public String getCh(); setCh(String ch)66 public void setCh(String ch); 67 68 /** 69 * Offset of alignment character. See the charoff attribute definition 70 * in HTML 4.0. 71 */ getChOff()72 public String getChOff(); setChOff(String chOff)73 public void setChOff(String chOff); 74 75 /** 76 * Vertical alignment of data in cells. See the <code>valign</code> 77 * attribute for HTMLTheadElement for details. 78 */ getVAlign()79 public String getVAlign(); setVAlign(String vAlign)80 public void setVAlign(String vAlign); 81 82 /** 83 * The collection of rows in this table section. 84 */ getRows()85 public HTMLCollection getRows(); 86 87 /** 88 * Insert a row into this section. The new row is inserted immediately 89 * before the current <code>index</code> th row in this section. If 90 * <code>index</code> is equal to the number of rows in this section, the 91 * new row is appended. 92 * @param index The row number where to insert a new row. This index 93 * starts from 0 and is relative only to the rows contained inside this 94 * section, not all the rows in the table. 95 * @return The newly created row. 96 * @exception DOMException 97 * INDEX_SIZE_ERR: Raised if the specified index is greater than the 98 * number of rows of if the index is neagative. 99 */ insertRow(int index)100 public HTMLElement insertRow(int index) 101 throws DOMException; 102 103 /** 104 * Delete a row from this section. 105 * @param index The index of the row to be deleted. This index starts 106 * from 0 and is relative only to the rows contained inside this 107 * section, not all the rows in the table. 108 * @exception DOMException 109 * INDEX_SIZE_ERR: Raised if the specified index is greater than or 110 * equal to the number of rows or if the index is negative. 111 */ deleteRow(int index)112 public void deleteRow(int index) 113 throws DOMException; 114 115 } 116