Class TableHead

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.HtmlComponent
com.vaadin.flow.component.html.TableHead
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<TableHead>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponentsOfType<TableRow>, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, TableRowContainer, Serializable

@NullMarked @Tag("thead") public class TableHead extends com.vaadin.flow.component.HtmlComponent implements TableRowContainer, com.vaadin.flow.component.ClickNotifier<TableHead>
Component representing a <thead> element — the header rows of a table.

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

Since:
25.3
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new empty <thead>.
    Creates a new <thead> with the given rows.
    TableHead(List<? extends TableRow> rows)
    List equivalent of TableHead(TableRow...).
  • Method Summary

    Methods inherited from class com.vaadin.flow.component.HtmlComponent

    getTitle, setTitle

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, bindVisible, findAncestor, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisible, whenAttached

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.ClickNotifier

    addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasComponentsOfType

    add, add, addComponentAsFirst, addComponentAtIndex, bindChildren, getChildren, getComponentAt, getComponentCount, indexOf, remove, remove, removeAll, replace

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled

    bindEnabled, isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.component.HasSize

    bindHeight, bindWidth, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName

    Methods inherited from interface com.vaadin.flow.component.html.TableRowContainer

    addRow, getRows, insertRow
  • Constructor Details

    • TableHead

      public TableHead()
      Creates a new empty <thead>.
    • TableHead

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

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