Package tripleplay.ui

Class ToggleButton

All Implemented Interfaces:
Clickable<ToggleButton>, Togglable<ToggleButton>

public class ToggleButton extends AbstractTextButton<ToggleButton> implements Togglable<ToggleButton>
A toggle button that displays text, or an icon, or both. Clicking the button toggles it from selected to unselected, and vice versa.
  • Constructor Details

    • ToggleButton

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

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

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

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