All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface org.w3c.dom.html.HTMLTableElement

public interface HTMLTableElement
extends HTMLElement
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.


Method Index

 o createCaption()
Create a new table caption object or return an existing one.
 o createTFoot()
Create a table footer row or return an existing one.
 o createTHead()
Create a table header row or return an existing one.
 o deleteCaption()
Delete the table caption, if one exists.
 o deleteRow(int)
Delete a table row.
 o deleteTFoot()
Delete the footer from the table, if one exists.
 o deleteTHead()
Delete the header from the table, if one exists.
 o getAlign()
Specifies the table's position with respect to the rest of the document.
 o getBgColor()
Cell background color.
 o getBorder()
The width of the border around the table.
 o getCaption()
Returns the table's CAPTION, or void if none exists.
 o getCellPadding()
Specifies the horizontal and vertical space between cell content and cell borders.
 o getCellSpacing()
Specifies the horizontal and vertical separation between cells.
 o getFrame()
Specifies which external table borders to render.
 o getRows()
Returns a collection of all the rows in the table, including all in THEAD, TFOOT, all TBODY elements.
 o getRules()
Specifies which internal table borders to render.
 o getSummary()
Supplementary description about the purpose or structure of a table.
 o getTBodies()
Returns a collection of the defined table bodies.
 o getTFoot()
Returns the table's TFOOT, or void if none exists.
 o getTHead()
Returns the table's THEAD, or void if none exists.
 o getWidth()
Specifies the desired table width.
 o insertRow(int)
Insert a new empty row in the table.
 o setAlign(String)
 o setBgColor(String)
 o setBorder(String)
 o setCaption(HTMLTableCaptionElement)
 o setCellPadding(String)
 o setCellSpacing(String)
 o setFrame(String)
 o setRules(String)
 o setSummary(String)
 o setTFoot(HTMLTableSectionElement)
 o setTHead(HTMLTableSectionElement)
 o setWidth(String)

Methods

 o getCaption
 public abstract HTMLTableCaptionElement getCaption()
Returns the table's CAPTION, or void if none exists.

 o setCaption
 public abstract void setCaption(HTMLTableCaptionElement caption)
 o getTHead
 public abstract HTMLTableSectionElement getTHead()
Returns the table's THEAD, or void if none exists.

 o setTHead
 public abstract void setTHead(HTMLTableSectionElement tHead)
 o getTFoot
 public abstract HTMLTableSectionElement getTFoot()
Returns the table's TFOOT, or void if none exists.

 o setTFoot
 public abstract void setTFoot(HTMLTableSectionElement tFoot)
 o getRows
 public abstract HTMLCollection getRows()
Returns a collection of all the rows in the table, including all in THEAD, TFOOT, all TBODY elements.

 o getTBodies
 public abstract HTMLCollection getTBodies()
Returns a collection of the defined table bodies.

 o getAlign
 public abstract String getAlign()
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.

 o setAlign
 public abstract void setAlign(String align)
 o getBgColor
 public abstract String getBgColor()
Cell background color. See the bgcolor attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

 o setBgColor
 public abstract void setBgColor(String bgColor)
 o getBorder
 public abstract String getBorder()
The width of the border around the table. See the border attribute definition in HTML 4.0.

 o setBorder
 public abstract void setBorder(String border)
 o getCellPadding
 public abstract String getCellPadding()
Specifies the horizontal and vertical space between cell content and cell borders. See the cellpadding attribute definition in HTML 4.0.

 o setCellPadding
 public abstract void setCellPadding(String cellPadding)
 o getCellSpacing
 public abstract String getCellSpacing()
Specifies the horizontal and vertical separation between cells. See the cellspacing attribute definition in HTML 4.0.

 o setCellSpacing
 public abstract void setCellSpacing(String cellSpacing)
 o getFrame
 public abstract String getFrame()
Specifies which external table borders to render. See the frame attribute definition in HTML 4.0.

 o setFrame
 public abstract void setFrame(String frame)
 o getRules
 public abstract String getRules()
Specifies which internal table borders to render. See the rules attribute definition in HTML 4.0.

 o setRules
 public abstract void setRules(String rules)
 o getSummary
 public abstract String getSummary()
Supplementary description about the purpose or structure of a table. See the summary attribute definition in HTML 4.0.

 o setSummary
 public abstract void setSummary(String summary)
 o getWidth
 public abstract String getWidth()
Specifies the desired table width. See the width attribute definition in HTML 4.0.

 o setWidth
 public abstract void setWidth(String width)
 o createTHead
 public abstract HTMLElement createTHead()
Create a table header row or return an existing one.

Returns:
A new table header element (THEAD).
 o deleteTHead
 public abstract void deleteTHead()
Delete the header from the table, if one exists.

 o createTFoot
 public abstract HTMLElement createTFoot()
Create a table footer row or return an existing one.

Returns:
A footer element (TFOOT).
 o deleteTFoot
 public abstract void deleteTFoot()
Delete the footer from the table, if one exists.

 o createCaption
 public abstract HTMLElement createCaption()
Create a new table caption object or return an existing one.

Returns:
A CAPTION element.
 o deleteCaption
 public abstract void deleteCaption()
Delete the table caption, if one exists.

 o insertRow
 public abstract HTMLElement insertRow(int index)
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.
 o deleteRow
 public abstract void deleteRow(int index)
Delete a table row.

Parameters:
index - The index of the row to be deleted.

All Packages  Class Hierarchy  This Package  Previous  Next  Index