public interface TextComponent
Modifier and Type | Method and Description |
---|---|
void |
setIcon(Icon icon)
Updates the icon to be displayed to the end user.
|
void |
setText(String text)
Updates the text to be displayed to the end user.
|
void setIcon(Icon icon)
Updates the icon to be displayed to the end user.
Supports 24x24 pixels icons for CB3 robots and 30x30 pixel icons for e-Series robots. The provided icon will be scaled automatically, if necessary.icon
- The icon to be displayed. Passing null
is allowed and will clear the icon.void setText(String text)
text
- The text to be displayed, not null
.Copyright © 2021. All rights reserved.