001/*
002 * Copyright (c) 2003 World Wide Web Consortium,
003 * (Massachusetts Institute of Technology, Institut National de
004 * Recherche en Informatique et en Automatique, Keio University). All
005 * Rights Reserved. This program is distributed under the W3C's Software
006 * Intellectual Property License. This program is distributed in the
007 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
008 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
009 * PURPOSE.
010 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
011 */
012
013package org.w3c.dom.html2;
014
015/**
016 * The object used to represent the <code>TH</code> and <code>TD</code>
017 * elements. See the TD element definition in HTML 4.01.
018 * <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>.
019 */
020public interface HTMLTableCellElement extends HTMLElement {
021    /**
022     * The index of this cell in the row, starting from 0. This index is in
023     * document tree order and not display order.
024     */
025    public int getCellIndex();
026
027    /**
028     * Abbreviation for header cells. See the abbr attribute definition in
029     * HTML 4.01.
030     */
031    public String getAbbr();
032    /**
033     * Abbreviation for header cells. See the abbr attribute definition in
034     * HTML 4.01.
035     */
036    public void setAbbr(String abbr);
037
038    /**
039     * Horizontal alignment of data in cell. See the align attribute definition
040     *  in HTML 4.01.
041     */
042    public String getAlign();
043    /**
044     * Horizontal alignment of data in cell. See the align attribute definition
045     *  in HTML 4.01.
046     */
047    public void setAlign(String align);
048
049    /**
050     * Names group of related headers. See the axis attribute definition in
051     * HTML 4.01.
052     */
053    public String getAxis();
054    /**
055     * Names group of related headers. See the axis attribute definition in
056     * HTML 4.01.
057     */
058    public void setAxis(String axis);
059
060    /**
061     * Cell background color. See the bgcolor attribute definition in HTML
062     * 4.01. This attribute is deprecated in HTML 4.01.
063     */
064    public String getBgColor();
065    /**
066     * Cell background color. See the bgcolor attribute definition in HTML
067     * 4.01. This attribute is deprecated in HTML 4.01.
068     */
069    public void setBgColor(String bgColor);
070
071    /**
072     * Alignment character for cells in a column. See the char attribute
073     * definition in HTML 4.01.
074     */
075    public String getCh();
076    /**
077     * Alignment character for cells in a column. See the char attribute
078     * definition in HTML 4.01.
079     */
080    public void setCh(String ch);
081
082    /**
083     * Offset of alignment character. See the charoff attribute definition in
084     * HTML 4.01.
085     */
086    public String getChOff();
087    /**
088     * Offset of alignment character. See the charoff attribute definition in
089     * HTML 4.01.
090     */
091    public void setChOff(String chOff);
092
093    /**
094     * Number of columns spanned by cell. See the colspan attribute definition
095     * in HTML 4.01.
096     */
097    public int getColSpan();
098    /**
099     * Number of columns spanned by cell. See the colspan attribute definition
100     * in HTML 4.01.
101     */
102    public void setColSpan(int colSpan);
103
104    /**
105     * List of <code>id</code> attribute values for header cells. See the
106     * headers attribute definition in HTML 4.01.
107     */
108    public String getHeaders();
109    /**
110     * List of <code>id</code> attribute values for header cells. See the
111     * headers attribute definition in HTML 4.01.
112     */
113    public void setHeaders(String headers);
114
115    /**
116     * Cell height. See the height attribute definition in HTML 4.01. This
117     * attribute is deprecated in HTML 4.01.
118     */
119    public String getHeight();
120    /**
121     * Cell height. See the height attribute definition in HTML 4.01. This
122     * attribute is deprecated in HTML 4.01.
123     */
124    public void setHeight(String height);
125
126    /**
127     * Suppress word wrapping. See the nowrap attribute definition in HTML
128     * 4.01. This attribute is deprecated in HTML 4.01.
129     */
130    public boolean getNoWrap();
131    /**
132     * Suppress word wrapping. See the nowrap attribute definition in HTML
133     * 4.01. This attribute is deprecated in HTML 4.01.
134     */
135    public void setNoWrap(boolean noWrap);
136
137    /**
138     * Number of rows spanned by cell. See the rowspan attribute definition in
139     * HTML 4.01.
140     */
141    public int getRowSpan();
142    /**
143     * Number of rows spanned by cell. See the rowspan attribute definition in
144     * HTML 4.01.
145     */
146    public void setRowSpan(int rowSpan);
147
148    /**
149     * Scope covered by header cells. See the scope attribute definition in
150     * HTML 4.01.
151     */
152    public String getScope();
153    /**
154     * Scope covered by header cells. See the scope attribute definition in
155     * HTML 4.01.
156     */
157    public void setScope(String scope);
158
159    /**
160     * Vertical alignment of data in cell. See the valign attribute definition
161     * in HTML 4.01.
162     */
163    public String getVAlign();
164    /**
165     * Vertical alignment of data in cell. See the valign attribute definition
166     * in HTML 4.01.
167     */
168    public void setVAlign(String vAlign);
169
170    /**
171     * Cell width. See the width attribute definition in HTML 4.01. This
172     * attribute is deprecated in HTML 4.01.
173     */
174    public String getWidth();
175    /**
176     * Cell width. See the width attribute definition in HTML 4.01. This
177     * attribute is deprecated in HTML 4.01.
178     */
179    public void setWidth(String width);
180
181}