Top Description Methods
org.w3c.dom.html

public Interface HTMLTableRowElement

extends HTMLElement
Imports
org.w3c.dom.DOMException

A row in a table. See the TR element definition in HTML 4.0.

See also the Document Object Model (DOM) Level 2 Specification.

Since
1.4, DOM Level 2

Method Summary

Modifier and TypeMethod and Description
public void
deleteCell(int
The index of the cell to delete, starting from 0.
index
)

Delete a cell from the current row.

public String
getAlign()

Horizontal alignment of data within cells of this row.

public String
getBgColor()

Background color for rows.

public HTMLCollection
getCells()

The collection of cells in this row.

public String
getCh()

Alignment character for cells in a column.

public String
getChOff()

Offset of alignment character.

public int
getRowIndex()

The index of this row, relative to the entire table, starting from 0.

public int
getSectionRowIndex()

The index of this row, relative to the current section ( THEAD , TFOOT , or TBODY ), starting from 0.

public String
getVAlign()

Vertical alignment of data within cells of this row.

public HTMLElement

Returns:

The newly created cell.
insertCell
(int
The place to insert the cell, starting from 0.
index
)

Insert an empty TD cell into this row.

public void
public void
setBgColor(String bgColor)

public void
public void
public void
setVAlign(String vAlign)

Inherited from org.w3c.dom.html.HTMLElement:
getClassNamegetDirgetIdgetLanggetTitlesetClassNamesetDirsetIdsetLangsetTitle

Method Detail

deleteCellback to summary
public void deleteCell(int index) throws DOMException

Delete a cell from the current row.

Parameters
index:int

The index of the cell to delete, starting from 0.

Exceptions
DOMException:
INDEX_SIZE_ERR: Raised if the specified index is greater than or equal to the number of cells or if the index is negative.
getAlignback to summary
public String getAlign()

Horizontal alignment of data within cells of this row. See the align attribute definition in HTML 4.0.

getBgColorback to summary
public String getBgColor()

Background color for rows. See the bgcolor attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

getCellsback to summary
public HTMLCollection getCells()

The collection of cells in this row.

getChback to summary
public String getCh()

Alignment character for cells in a column. See the char attribute definition in HTML 4.0.

getChOffback to summary
public String getChOff()

Offset of alignment character. See the charoff attribute definition in HTML 4.0.

getRowIndexback to summary
public int getRowIndex()

The index of this row, relative to the entire table, starting from 0. This is in document tree order and not display order. The rowIndex does not take into account sections ( THEAD , TFOOT , or TBODY ) within the table.

getSectionRowIndexback to summary
public int getSectionRowIndex()

The index of this row, relative to the current section ( THEAD , TFOOT , or TBODY ), starting from 0.

getVAlignback to summary
public String getVAlign()

Vertical alignment of data within cells of this row. See the valign attribute definition in HTML 4.0.

insertCellback to summary
public HTMLElement insertCell(int index) throws DOMException

Insert an empty TD cell into this row. If index is equal to the number of cells, the new cell is appended

Parameters
index:int

The place to insert the cell, starting from 0.

Returns:HTMLElement

The newly created cell.

Exceptions
DOMException:
INDEX_SIZE_ERR: Raised if the specified index is greater than the number of cells or if the index is negative.
setAlignback to summary
public void setAlign(String align)
setBgColorback to summary
public void setBgColor(String bgColor)
setChback to summary
public void setCh(String ch)
setChOffback to summary
public void setChOff(String chOff)
setVAlignback to summary
public void setVAlign(String vAlign)