Package tripleplay.ui

Class AbstractTextButton<T extends AbstractTextButton<T>>

Direct Known Subclasses:
Button, ToggleButton

public abstract class AbstractTextButton<T extends AbstractTextButton<T>> extends TextWidget<T>
An abstract base class for buttons with text labels.
  • Field Details

    • text

      public final react.Value<String> text
      The text displayed by this button, or null.
    • icon

      public final react.Value<Icon> icon
      The icon displayed by this button, or null.
  • Method Details

    • bindText

      public T bindText(react.ValueView<String> textV)
      Binds the text of this button to the supplied reactive value. The current text will be adjusted to match the state of text.
    • bindIcon

      public T bindIcon(react.ValueView<Icon> iconV)
      Binds the icon of this button to the supplied reactive value. The current icon will be adjusted to match the state of icon.
    • setText

      public T setText(String text)
      Updates the text displayed by this button.
    • setIcon

      public T setIcon(Icon icon)
      Updates the icon displayed by this button.