001 /*
002 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
003 *
004 * This code is free software; you can redistribute it and/or modify it
005 * under the terms of the GNU General Public License version 2 only, as
006 * published by the Free Software Foundation. Sun designates this
007 * particular file as subject to the "Classpath" exception as provided
008 * by Sun in the LICENSE file that accompanied this code.
009 *
010 * This code is distributed in the hope that it will be useful, but WITHOUT
011 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
012 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
013 * version 2 for more details (a copy is included in the LICENSE file that
014 * accompanied this code).
015 *
016 * You should have received a copy of the GNU General Public License version
017 * 2 along with this work; if not, write to the Free Software Foundation,
018 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
019 *
020 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
021 * CA 95054 USA or visit www.sun.com if you need additional information or
022 * have any questions.
023 */
024
025 /*
026 * This file is available under and governed by the GNU General Public
027 * License version 2 only, as published by the Free Software Foundation.
028 * However, the following notice accompanied the original version of this
029 * file and, per its terms, should not be removed:
030 *
031 * Copyright (c) 2000 World Wide Web Consortium,
032 * (Massachusetts Institute of Technology, Institut National de
033 * Recherche en Informatique et en Automatique, Keio University). All
034 * Rights Reserved. This program is distributed under the W3C's Software
035 * Intellectual Property License. This program is distributed in the
036 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
037 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
038 * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
039 * details.
040 */
041
042 package org.w3c.dom.html;
043
044 import org.w3c.dom.DOMException;
045
046 /**
047 * The <code>THEAD</code> , <code>TFOOT</code> , and <code>TBODY</code>
048 * elements.
049 * <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>.
050 */
051 public interface HTMLTableSectionElement extends HTMLElement {
052 /**
053 * Horizontal alignment of data in cells. See the <code>align</code>
054 * attribute for HTMLTheadElement for details.
055 */
056 public String getAlign();
057
058 public void setAlign(String align);
059
060 /**
061 * Alignment character for cells in a column. See the char attribute
062 * definition in HTML 4.0.
063 */
064 public String getCh();
065
066 public void setCh(String ch);
067
068 /**
069 * Offset of alignment character. See the charoff attribute definition
070 * in HTML 4.0.
071 */
072 public String getChOff();
073
074 public void setChOff(String chOff);
075
076 /**
077 * Vertical alignment of data in cells. See the <code>valign</code>
078 * attribute for HTMLTheadElement for details.
079 */
080 public String getVAlign();
081
082 public void setVAlign(String vAlign);
083
084 /**
085 * The collection of rows in this table section.
086 */
087 public HTMLCollection getRows();
088
089 /**
090 * Insert a row into this section. The new row is inserted immediately
091 * before the current <code>index</code> th row in this section. If
092 * <code>index</code> is equal to the number of rows in this section, the
093 * new row is appended.
094 * @param index The row number where to insert a new row. This index
095 * starts from 0 and is relative only to the rows contained inside this
096 * section, not all the rows in the table.
097 * @return The newly created row.
098 * @exception DOMException
099 * INDEX_SIZE_ERR: Raised if the specified index is greater than the
100 * number of rows of if the index is neagative.
101 */
102 public HTMLElement insertRow(int index) throws DOMException;
103
104 /**
105 * Delete a row from this section.
106 * @param index The index of the row to be deleted. This index starts
107 * from 0 and is relative only to the rows contained inside this
108 * section, not all the rows in the table.
109 * @exception DOMException
110 * INDEX_SIZE_ERR: Raised if the specified index is greater than or
111 * equal to the number of rows or if the index is negative.
112 */
113 public void deleteRow(int index) throws DOMException;
114
115 }
|