|
|
The create* and delete* methods on the table allow authors to
construct and modify tables. HTML 4.0 specifies that only one of
each of the CAPTION
, THEAD
, and
TFOOT
elements may exist in a table. Therefore, if
one exists, and the createTHead() or createTFoot() method is
called, the method returns the existing THead or TFoot element. See
the
TABLE element definition in HTML 4.0.
HTMLTableElement ()
| HTMLTableElement |
HTMLTableElement (const HTMLTableElement &other)
| HTMLTableElement |
HTMLTableElement (const Node &other)
| HTMLTableElement |
HTMLTableElement (HTMLTableElementImpl *impl)
| HTMLTableElement |
[protected]
HTMLTableElement & operator = (const HTMLTableElement &other)
| operator = |
Reimplemented from HTMLElement.
HTMLTableElement & operator = (const Node &other)
| operator = |
Reimplemented from HTMLElement.
~HTMLTableElement ()
| ~HTMLTableElement |
HTMLTableCaptionElement caption ()
| caption |
[const]
Returns the table's CAPTION
, or void if none
exists.
void setCaption ( const HTMLTableCaptionElement & )
| setCaption |
see caption
HTMLTableSectionElement tHead ()
| tHead |
[const]
Returns the table's THEAD
, or null
if none exists.
void setTHead ( const HTMLTableSectionElement & )
| setTHead |
see tHead
HTMLTableSectionElement tFoot ()
| tFoot |
[const]
Returns the table's TFOOT
, or null
if none exists.
void setTFoot ( const HTMLTableSectionElement & )
| setTFoot |
see tFoot
HTMLCollection rows ()
| rows |
[const]
Returns a collection of all the rows in the table, including
all in THEAD
, TFOOT
, all
TBODY
elements.
HTMLCollection tBodies ()
| tBodies |
[const]
Returns a collection of the defined table bodies.
DOMString align ()
| align |
[const]
Specifies the table's position with respect to the rest of the document. See the align attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
void setAlign ( const DOMString & )
| setAlign |
see align
DOMString bgColor ()
| bgColor |
[const]
Cell background color. See the bgcolor attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
void setBgColor ( const DOMString & )
| setBgColor |
see bgColor
DOMString border ()
| border |
[const]
The width of the border around the table. See the border attribute definition in HTML 4.0.
void setBorder ( const DOMString & )
| setBorder |
see border
DOMString cellPadding ()
| cellPadding |
[const]
Specifies the horizontal and vertical space between cell content and cell borders. See the cellpadding attribute definition in HTML 4.0.
void setCellPadding ( const DOMString & )
| setCellPadding |
see cellPadding
DOMString cellSpacing ()
| cellSpacing |
[const]
Specifies the horizontal and vertical separation between cells. See the cellspacing attribute definition in HTML 4.0.
void setCellSpacing ( const DOMString & )
| setCellSpacing |
see cellSpacing
DOMString frame ()
| frame |
[const]
Specifies which external table borders to render. See the frame attribute definition in HTML 4.0.
void setFrame ( const DOMString & )
| setFrame |
see frame
DOMString rules ()
| rules |
[const]
Specifies which internal table borders to render. See the rules attribute definition in HTML 4.0.
void setRules ( const DOMString & )
| setRules |
see rules
DOMString summary ()
| summary |
[const]
Supplementary description about the purpose or structure of a table. See the summary attribute definition in HTML 4.0.
void setSummary ( const DOMString & )
| setSummary |
see summary
DOMString width ()
| width |
[const]
Specifies the desired table width. See the width attribute definition in HTML 4.0.
void setWidth ( const DOMString & )
| setWidth |
see width
HTMLElement createTHead ( )
| createTHead |
Create a table header row or return an existing one.
Returns: A new table header element ( THEAD
).
void deleteTHead ( )
| deleteTHead |
Delete the header from the table, if one exists.
HTMLElement createTFoot ( )
| createTFoot |
Create a table footer row or return an existing one.
Returns: A footer element ( TFOOT
).
void deleteTFoot ( )
| deleteTFoot |
Delete the footer from the table, if one exists.
HTMLElement createCaption ( )
| createCaption |
Create a new table caption object or return an existing one.
Returns: A CAPTION
element.
void deleteCaption ( )
| deleteCaption |
Delete the table caption, if one exists.
HTMLElement insertRow ( long index )
| insertRow |
Insert a new empty row in the table. Note. A table row cannot be empty according to HTML 4.0 Recommendation.
Parameters:
index | The row number where to insert a new row. |
Returns: The newly created row.
void deleteRow ( long index )
| deleteRow |
Delete a table row.
Parameters:
index | The index of the row to be deleted. |
Generated by: dfaure on faure on Tue Apr 16 08:50:42 2002, using kdoc 2.0a53. |