public interface HasText extends HasElement
The default implementations set the text as text content of
HasElement.getElement()
. Override all methods in this interface if the text
should be added to some other element.
Modifier and Type | Method and Description |
---|---|
default String |
getText()
Gets the text content of this component.
|
default void |
setText(String text)
Sets the given string as the content of this component.
|
getElement
default void setText(String text)
HasComponents.add(Component...)
with the Text
component
for the textual parts.text
- the text content to setdefault String getText()
null
Copyright © 2020. All rights reserved.