You're viewing an older version of Vaadin JavaDoc. Please see version 24.6.1 for the latest.
com.vaadin.flow.component.html.

Class Div

All Implemented Interfaces:

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

@Tag("div") public class Div extends HtmlContainer implements ClickNotifier<Div>, HasOrderedComponents

Component representing a <div> element.

Since:

1.0

Author:

Vaadin Ltd

See Also:

  • Constructor Details

    • Div

      public Div()

      Creates a new empty div.

    • Div

      public Div(Component... components)

      Creates a new div with the given child components.

      Parameters:

      components - the child components

    • Div

      public Div(String text)

      Creates a new div with the given text.

      Parameters:

      text - the text