Class TableCaption

All Implemented Interfaces:
AttachNotifier, DetachNotifier, HasComponents, HasComponentsOfType<Component>, HasElement, HasEnabled, HasSize, HasStyle, HasText, Serializable

@NullMarked @Tag("caption") public class TableCaption extends HtmlContainer
Component representing a <caption> element ? the title of a Table, announced by assistive technologies as the table's name.

A caption holds flow content, so unlike the table itself it does extend HtmlContainer: anything may go inside it.

Since:
25.3
See Also:
  • Constructor Details

    • TableCaption

      public TableCaption()
      Creates a new empty caption.
    • TableCaption

      public TableCaption(Component... components)
      Creates a new caption with the given children.
      Parameters:
      components - the children components.
    • TableCaption

      public TableCaption(List<? extends Component> components)
      List equivalent of TableCaption(Component...).
      Parameters:
      components - the children components.
    • TableCaption

      public TableCaption(String text)
      Creates a new caption with the given text.
      Parameters:
      text - the caption text.
    • TableCaption

      public TableCaption(Signal<String> textSignal)
      Creates a new caption with its text content bound to the given signal.
      Parameters:
      textSignal - the signal to bind, not null
      See Also: