Package tripleplay.ui
Class Button
- Direct Known Subclasses:
LongPressButton
A button that displays text, or an icon, or both.
-
Nested Class Summary
Nested classes/interfaces inherited from class tripleplay.ui.Element
Element.Take
-
Field Summary
Fields inherited from class tripleplay.ui.AbstractTextButton
icon, text
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class tripleplay.ui.AbstractTextButton
bindIcon, bindText, setIcon, setText
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
-
Constructor Details
-
Button
public Button()Creates a button with no text or icon. -
Button
Creates a button with the supplied text. -
Button
Creates a button with the supplied icon. -
Button
Creates a button with the supplied text and icon.
-
-
Method Details
-
onClick
A convenience method for registering a click handler. Assumes you don't need the result ofSignalView.connect(react.SignalView.Listener<? super T>)
, because it throws it away. -
clicked
Description copied from interface:Clickable
A signal that is emitted when this element is clicked. -
click
public void click()Description copied from interface:Clickable
Programmatically triggers a click of this element. -
toString
-