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.
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.
      components - the child components
    • Pre

      public Pre(String text)
      Creates a new paragraph with the given text.
      text - the text