public interface HasLabel extends HasElement
The default implementations set the label of the component to the given text for
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 |
getLabel()
Gets the label of the component.
|
default void |
setLabel(String label)
Set the label of the component to the given text.
|
getElementdefault String getLabel()
null if no label has
been setdefault void setLabel(String label)
label - the label text to set or null to clearCopyright © 2000–2023 Vaadin Ltd. All rights reserved.