Package tripleplay.ui

Class Button

All Implemented Interfaces:
Clickable<Button>
Direct Known Subclasses:
LongPressButton

public class Button extends AbstractTextButton<Button> implements Clickable<Button>
A button that displays text, or an icon, or both.
  • Constructor Details

    • Button

      public Button()
      Creates a button with no text or icon.
    • Button

      public Button(String text)
      Creates a button with the supplied text.
    • Button

      public Button(Icon icon)
      Creates a button with the supplied icon.
    • Button

      public Button(String text, Icon icon)
      Creates a button with the supplied text and icon.
  • Method Details

    • onClick

      public Button onClick(react.SignalView.Listener<? super Button> onClick)
      A convenience method for registering a click handler. Assumes you don't need the result of SignalView.connect(react.SignalView.Listener<? super T>), because it throws it away.
    • clicked

      public react.SignalView<Button> clicked()
      Description copied from interface: Clickable
      A signal that is emitted when this element is clicked.
      Specified by:
      clicked in interface Clickable<Button>
    • click

      public void click()
      Description copied from interface: Clickable
      Programmatically triggers a click of this element.
      Specified by:
      click in interface Clickable<Button>
    • toString

      public String toString()
      Overrides:
      toString in class Object