Class H1

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

@Tag("h1") public class H1 extends HtmlContainer implements ClickNotifier<H1>
Component representing a <h1> element.
Since:
1.0
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • H1

      public H1()
      Creates a new empty heading.
    • H1

      public H1(Component... components)
      Creates a new heading with the given child components.
      Parameters:
      components - the child components
    • H1

      public H1(String text)
      Creates a new heading with the given text.
      Parameters:
      text - the text