Class Paragraph

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

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

    • Paragraph

      public Paragraph()
      Creates a new empty paragraph.
    • Paragraph

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

      public Paragraph(String text)
      Creates a new paragraph with the given text.
      Parameters:
      text - the text