Class Span

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

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

    • Span

      public Span()
      Creates a new empty span.
    • Span

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

      public Span(String text)
      Creates a new span with the given text.
      Parameters:
      text - the text