public class

TableSectionElement

extends Element
java.lang.Object
   ↳ com.google.gwt.core.client.JavaScriptObject
     ↳ com.google.gwt.dom.client.Node
       ↳ com.google.gwt.dom.client.Element
         ↳ com.google.gwt.dom.client.TableSectionElement

Class Overview

The THEAD, TFOOT, and TBODY elements.

Summary

[Expand]
Inherited Constants
From class com.google.gwt.dom.client.Node
Protected Constructors
TableSectionElement()
Public Methods
static TableSectionElement as(Element elem)
Assert that the given Element is compatible with this class and automatically typecast it.
final void deleteRow(int index)
Delete a row from this section.
final String getAlign()
Horizontal alignment of data in cells.
final String getCh()
Alignment character for cells in a column.
final String getChOff()
Offset of alignment character.
final NodeList<TableRowElement> getRows()
The collection of rows in this table section.
final String getVAlign()
Vertical alignment of data in cells.
final TableRowElement insertRow(int index)
Insert a row into this section.
final void setAlign(String align)
Horizontal alignment of data in cells.
final void setCh(String ch)
Alignment character for cells in a column.
final void setChOff(String chOff)
Offset of alignment character.
final void setVAlign(String vAlign)
Vertical alignment of data in cells.
[Expand]
Inherited Methods
From class com.google.gwt.dom.client.Element
From class com.google.gwt.dom.client.Node
From class com.google.gwt.core.client.JavaScriptObject
From class java.lang.Object

Protected Constructors

protected TableSectionElement ()

Public Methods

public static TableSectionElement as (Element elem)

Assert that the given Element is compatible with this class and automatically typecast it.

public final void deleteRow (int index)

Delete a row from this section.

Parameters
index The index of the row to be deleted, or -1 to delete the last row. This index starts from 0 and is relative only to the rows contained inside this section, not all the rows in the table.

public final String getAlign ()

Horizontal alignment of data in cells. See the align attribute for HTMLTheadElement for details.

public final String getCh ()

Alignment character for cells in a column.

public final String getChOff ()

Offset of alignment character.

public final NodeList<TableRowElement> getRows ()

The collection of rows in this table section.

public final String getVAlign ()

Vertical alignment of data in cells. See the valign attribute for HTMLTheadElement for details.

public final TableRowElement insertRow (int index)

Insert a row into this section. The new row is inserted immediately before the current indexth row in this section. If index is -1 or equal to the number of rows in this section, the new row is appended.

Parameters
index The row number where to insert a new row. This index starts from 0 and is relative only to the rows contained inside this section, not all the rows in the table.
Returns
  • The newly created row.

public final void setAlign (String align)

Horizontal alignment of data in cells. See the align attribute for HTMLTheadElement for details.

public final void setCh (String ch)

Alignment character for cells in a column.

public final void setChOff (String chOff)

Offset of alignment character.

public final void setVAlign (String vAlign)

Vertical alignment of data in cells. See the valign attribute for HTMLTheadElement for details.