public interface

HTMLTableRowElement

implements HTMLElement
org.w3c.dom.html.HTMLTableRowElement

Class Overview

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

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

Summary

[Expand]
Inherited Constants
From interface org.w3c.dom.Node
Public Methods
abstract void deleteCell(int index)
Delete a cell from the current row.
abstract String getAlign()
Horizontal alignment of data within cells of this row.
abstract String getBgColor()
Background color for rows.
abstract HTMLCollection getCells()
The collection of cells in this row.
abstract String getCh()
Alignment character for cells in a column.
abstract String getChOff()
Offset of alignment character.
abstract int getRowIndex()
The index of this row, relative to the entire table, starting from 0.
abstract int getSectionRowIndex()
The index of this row, relative to the current section ( THEAD , TFOOT , or TBODY ), starting from 0.
abstract String getVAlign()
Vertical alignment of data within cells of this row.
abstract HTMLElement insertCell(int index)
Insert an empty TD cell into this row.
abstract void setAlign(String align)
abstract void setBgColor(String bgColor)
abstract void setCh(String ch)
abstract void setChOff(String chOff)
abstract void setVAlign(String vAlign)
[Expand]
Inherited Methods
From interface org.w3c.dom.Element
From interface org.w3c.dom.Node
From interface org.w3c.dom.html.HTMLElement

Public Methods

public abstract void deleteCell (int index)

Delete a cell from the current row.

Parameters
index The index of the cell to delete, starting from 0.
Throws
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 abstract String getAlign ()

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

public abstract String getBgColor ()

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

public abstract HTMLCollection getCells ()

The collection of cells in this row.

public abstract String getCh ()

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

public abstract String getChOff ()

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

public abstract 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.

public abstract int getSectionRowIndex ()

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

public abstract String getVAlign ()

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

public abstract HTMLElement insertCell (int index)

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

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

public abstract void setAlign (String align)

public abstract void setBgColor (String bgColor)

public abstract void setCh (String ch)

public abstract void setChOff (String chOff)

public abstract void setVAlign (String vAlign)