com.vaadin.flow.component.html.

Class Pre

All Implemented Interfaces:

AttachNotifier, ClickNotifier<Pre>, DetachNotifier, HasComponents, HasElement, HasEnabled, HasSize, HasStyle, HasText, Serializable

@Tag("pre") public class Pre extends HtmlContainer implements ClickNotifier<Pre>

Component representing a <pre> element.

Author:

Vaadin Ltd

See Also:

  • Constructor Details

    • Pre

      public Pre()

      Creates a new empty preformatted text block.

    • Pre

      public Pre(Component... components)

      Creates a new preformatted text block with the given child components.

      Parameters:

      components - the child components

    • Pre

      public Pre(String text)

      Creates a new paragraph with the given text.

      Parameters:

      text - the text