com.vaadin.flow.component.

Class Text

    • Constructor Detail

      • Text

        public Text(String text)

        Creates an instance using the given text.

        Parameters:

        text - the text to show

    • Method Detail

      • setText

        public void setText(String text)

        Sets the text of the component.

        Specified by:

        setText in interface HasText

        Parameters:

        text - the text of the component, not null

      • getText

        public String getText()

        Gets the text of the component.

        Specified by:

        getText in interface HasText

        Returns:

        the text of the component, not null