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 /**
  45  *  The object used to represent the <code>TH</code> and <code>TD</code>
  46  * elements. See the  TD element definition in HTML 4.0.
  47  * <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>.
  48  */
  49 public interface HTMLTableCellElement extends HTMLElement {
  50     /**
  51      *  The index of this cell in the row, starting from 0. This index is in
  52      * document tree order and not display order.
  53      */
  54     public int getCellIndex();
  55 
  56     /**
  57      *  Abbreviation for header cells. See the  abbr attribute definition in
  58      * HTML 4.0.
  59      */
  60     public String getAbbr();
  61     public void setAbbr(String abbr);
  62 
  63     /**
  64      *  Horizontal alignment of data in cell. See the  align attribute
  65      * definition in HTML 4.0.
  66      */
  67     public String getAlign();
  68     public void setAlign(String align);
  69 
  70     /**
  71      *  Names group of related headers. See the  axis attribute definition in
  72      * HTML 4.0.
  73      */
  74     public String getAxis();
  75     public void setAxis(String axis);
  76 
  77     /**
  78      *  Cell background color. See the  bgcolor attribute definition in HTML
  79      * 4.0. This attribute is deprecated in HTML 4.0.
  80      */
  81     public String getBgColor();
  82     public void setBgColor(String bgColor);
  83 
  84     /**
  85      *  Alignment character for cells in a column. See the  char attribute
  86      * definition in HTML 4.0.
  87      */
  88     public String getCh();
  89     public void setCh(String ch);
  90 
  91     /**
  92      *  Offset of alignment character. See the  charoff attribute definition
  93      * in HTML 4.0.
  94      */
  95     public String getChOff();
  96     public void setChOff(String chOff);
  97 
  98     /**
  99      *  Number of columns spanned by cell. See the  colspan attribute
 100      * definition in HTML 4.0.
 101      */
 102     public int getColSpan();
 103     public void setColSpan(int colSpan);
 104 
 105     /**
 106      *  List of <code>id</code> attribute values for header cells. See the
 107      * headers attribute definition in HTML 4.0.
 108      */
 109     public String getHeaders();
 110     public void setHeaders(String headers);
 111 
 112     /**
 113      *  Cell height. See the  height attribute definition in HTML 4.0. This
 114      * attribute is deprecated in HTML 4.0.
 115      */
 116     public String getHeight();
 117     public void setHeight(String height);
 118 
 119     /**
 120      *  Suppress word wrapping. See the  nowrap attribute definition in HTML
 121      * 4.0. This attribute is deprecated in HTML 4.0.
 122      */
 123     public boolean getNoWrap();
 124     public void setNoWrap(boolean noWrap);
 125 
 126     /**
 127      *  Number of rows spanned by cell. See the  rowspan attribute definition
 128      * in HTML 4.0.
 129      */
 130     public int getRowSpan();
 131     public void setRowSpan(int rowSpan);
 132 
 133     /**
 134      *  Scope covered by header cells. See the  scope attribute definition in
 135      * HTML 4.0.
 136      */
 137     public String getScope();
 138     public void setScope(String scope);
 139 
 140     /**
 141      *  Vertical alignment of data in cell. See the  valign attribute
 142      * definition in HTML 4.0.
 143      */
 144     public String getVAlign();
 145     public void setVAlign(String vAlign);
 146 
 147     /**
 148      *  Cell width. See the  width attribute definition in HTML 4.0. This
 149      * attribute is deprecated in HTML 4.0.
 150      */
 151     public String getWidth();
 152     public void setWidth(String width);
 153 
 154 }