Package tripleplay.ui
Class AbstractTextButton<T extends AbstractTextButton<T>>
java.lang.Object
tripleplay.ui.Element<T>
tripleplay.ui.Widget<T>
tripleplay.ui.TextWidget<T>
tripleplay.ui.AbstractTextButton<T>
- Direct Known Subclasses:
Button
,ToggleButton
An abstract base class for buttons with text labels.
-
Nested Class Summary
Nested classes/interfaces inherited from class tripleplay.ui.Element
Element.Take
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionBinds the icon of this button to the supplied reactive value.Binds the text of this button to the supplied reactive value.Updates the icon displayed by this button.Updates the text displayed by this button.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 button, or null. -
icon
The icon displayed by this button, or null.
-
-
Method Details
-
bindText
Binds the text of this button to the supplied reactive value. The current text will be adjusted to match the state oftext
. -
bindIcon
Binds the icon of this button to the supplied reactive value. The current icon will be adjusted to match the state oficon
. -
setText
Updates the text displayed by this button. -
setIcon
Updates the icon displayed by this button.
-