public interface TextComponent
Modifier and Type | Method and Description |
---|---|
String |
getText()
Returns the text contained in this
TextComponent . |
void |
setText(String text)
Sets the text of this
TextComponent to the specified text. |
String getText()
TextComponent
.void setText(String text)
TextComponent
to the specified text.
If the text is null
or empty, has the effect of simply
deleting the old text.text
- the new text to be setCopyright © 2003–2021 XDEV Software. All rights reserved.