Package tripleplay.ui
Class Label
- Direct Known Subclasses:
HistoryGroup.RenderableLabel
A widget that displays one or more lines of text and/or an icon image.
-
Nested Class Summary
Nested classes/interfaces inherited from class tripleplay.ui.Element
Element.Take
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLabel()
Creates a label with no text or icon.Creates a label with the supplied text.Creates a label with the supplied text and icon.Label
(react.ValueView<?> text) Creates a label and callsbindText(react.ValueView<?>)
withtext
.Creates a label with the supplied icon. -
Method Summary
Methods inherited from class tripleplay.ui.Element
addStyles, addStyles, bindEnabled, bindVisible, bounds, constraint, enabledSlot, hierarchyChanged, isAdded, isEnabled, isShowing, isVisible, location, parent, setConstraint, setEnabled, setStyles, setStyles, setVisible, size, styles, visibleSlot, x, y
-
Field Details
-
text
The text displayed by this widget, or null. -
icon
The icon displayed by this widget, or null.
-
-
Constructor Details
-
Label
public Label()Creates a label with no text or icon. -
Label
Creates a label with the supplied text. -
Label
Creates a label with the supplied icon. -
Label
Creates a label with the supplied text and icon. -
Label
public Label(react.ValueView<?> text) Creates a label and callsbindText(react.ValueView<?>)
withtext
.
-
-
Method Details
-
bindText
Binds the text of this label to the supplied reactive value. The current text will be adjusted to match the state oftext
. -
bindIcon
Binds the icon of this label to the supplied reactive value. The current icon will be adjusted to match the state oficon
. -
setText
Updates the text displayed by this label. -
setIcon
Updates the icon displayed by this label. -
toString
-