FileDocCategorySizeDatePackage
HTMLTableRowElement.javaAPI DocJava SE 5 API3554Fri Aug 26 14:58:40 BST 2005org.w3c.dom.html

HTMLTableRowElement

public interface HTMLTableRowElement implements HTMLElement
A row in a table. See the TR element definition in HTML 4.0.

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

Fields Summary
Constructors Summary
Methods Summary
public voiddeleteCell(int index)
Delete a cell from the current row.

param
index The index of the cell to delete, starting from 0.
exception
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.

public java.lang.StringgetAlign()
Horizontal alignment of data within cells of this row. See the align attribute definition in HTML 4.0.

public java.lang.StringgetBgColor()
Background color for rows. See the bgcolor attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

public org.w3c.dom.html.HTMLCollectiongetCells()
The collection of cells in this row.

public java.lang.StringgetCh()
Alignment character for cells in a column. See the char attribute definition in HTML 4.0.

public java.lang.StringgetChOff()
Offset of alignment character. See the charoff attribute definition in HTML 4.0.

public intgetRowIndex()
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.

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

public java.lang.StringgetVAlign()
Vertical alignment of data within cells of this row. See the valign attribute definition in HTML 4.0.

public org.w3c.dom.html.HTMLElementinsertCell(int index)
Insert an empty TD cell into this row. If index is equal to the number of cells, the new cell is appended

param
index The place to insert the cell, starting from 0.
return
The newly created cell.
exception
DOMException INDEX_SIZE_ERR: Raised if the specified index is greater than the number of cells or if the index is negative.

public voidsetAlign(java.lang.String align)

public voidsetBgColor(java.lang.String bgColor)

public voidsetCh(java.lang.String ch)

public voidsetChOff(java.lang.String chOff)

public voidsetVAlign(java.lang.String vAlign)