Class Table

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.HtmlComponent
org.vaadin.firitin.fields.internalhtmltable.Table
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable, TableRowContainer

@Tag("table") public class Table extends com.vaadin.flow.component.HtmlComponent implements TableRowContainer
Represents the html table element (<table>). Can contain
  • a caption
  • a column group
  • a thead
  • a tfoot
  • a tbody or a set of table rows


Sub elements except for rows are created when calling the respective getter, for instance getHead(). Since <table> expects a certain order of elements, this class takes care of positioning them in the correct order (e.g. head <thead>, then <tbody> and then <tfoot>, etc).

Also a table must not contain rows as direct children, when having a <tbody>. Therefore, all previously to the table assigned rows are automatically assigned to the <tbody>, when getBody() is called.

Also all subsequent calls to any table row method are automatically delegated to the <tbody>.
Author:
Stefan Uebe
See Also: