Class TableBody

All Implemented Interfaces:
AttachNotifier, ClickNotifier<TableBody>, DetachNotifier, HasComponentsOfType<TableRow>, HasElement, HasEnabled, HasSize, HasStyle, TableRowContainer, Serializable

@NullMarked @Tag("tbody") public class TableBody extends HtmlComponent implements TableRowContainer, ClickNotifier<TableBody>
Component representing a <tbody> element ? a group of data rows.

A <tbody> may only contain rows, so this component exposes the TableRow operations rather than a generic add(Component).

Since:
25.3
See Also:
  • Constructor Details

    • TableBody

      public TableBody()
      Creates a new empty <tbody>.
    • TableBody

      public TableBody(TableRow... rows)
      Creates a new <tbody> with the given rows.
      Parameters:
      rows - the rows to add.
    • TableBody

      public TableBody(List<? extends TableRow> rows)
      List equivalent of TableBody(TableRow...).
      Parameters:
      rows - the rows to add.