class HTMLTableElement

The create* and delete* methods on the table allow authors to construct and modify tables. More...

Full nameDOM::HTMLTableElement
Definition#include <html_table.h>
InheritsDOM::HTMLElement [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

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 <code> CAPTION </code> , <code> THEAD </code> , and <code> TFOOT </code> 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 <a href="http://www.w3.org/TR/REC-html40/struct/tables.html#edef-TABLE"> TABLE element definition </a> 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 <code> CAPTION </code> , or void if none exists.

void  setCaption ( const HTMLTableCaptionElement & )

setCaption

see caption

HTMLTableSectionElement  tHead ()

tHead

[const]

Returns the table's <code> THEAD </code> , or <code> null </code> if none exists.

void  setTHead ( const HTMLTableSectionElement & )

setTHead

see tHead

HTMLTableSectionElement  tFoot ()

tFoot

[const]

Returns the table's <code> TFOOT </code> , or <code> null </code> 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 <code> THEAD </code> , <code> TFOOT </code> , all <code> TBODY </code> 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 <a href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-align-TABLE"> align attribute definition </a> 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 <a href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-bgcolor"> bgcolor attribute definition </a> 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 <a href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-border-TABLE"> border attribute definition </a> 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 <a href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-cellpadding"> cellpadding attribute definition </a> 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 <a href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-cellspacing"> cellspacing attribute definition </a> in HTML 4.0.

void  setCellSpacing ( const DOMString & )

setCellSpacing

see cellSpacing

DOMString  frame ()

frame

[const]

Specifies which external table borders to render. See the <a href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-frame"> frame attribute definition </a> in HTML 4.0.

void  setFrame ( const DOMString & )

setFrame

see frame

DOMString  rules ()

rules

[const]

Specifies which internal table borders to render. See the <a href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-rules"> rules attribute definition </a> 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 <a href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-summary"> summary attribute definition </a> in HTML 4.0.

void  setSummary ( const DOMString & )

setSummary

see summary

DOMString  width ()

width

[const]

Specifies the desired table width. See the <a href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-width-TABLE"> width attribute definition </a> 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 ( <code> THEAD </code> ).

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 ( <code> TFOOT </code> ).

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 <code> CAPTION </code> 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:
indexThe row number where to insert a new row.

Returns: The newly created row.

void  deleteRow ( long index )

deleteRow

Delete a table row.

Parameters:
indexThe index of the row to be deleted.


Generated by: root@daffy.perf.redhat.com on Mon Jul 14 13:28:10 2003, using kdoc 2.0a53.