Class JideToggleButton

All Implemented Interfaces:
Alignable, AlignmentSupport, ButtonStyle, ComponentStateSupport, ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class JideToggleButton extends JideButton implements Accessible
An implementation of a two-state JideButton.
See Also:
  • Constructor Details

    • JideToggleButton

      public JideToggleButton()
      Creates an initially unselected toggle button without setting the text or image.
    • JideToggleButton

      public JideToggleButton(Icon icon)
      Creates an initially unselected toggle button with the specified image but no text.
      Parameters:
      icon - the image that the button should display
    • JideToggleButton

      public JideToggleButton(Icon icon, boolean selected)
      Creates a toggle button with the specified image and selection state, but no text.
      Parameters:
      icon - the image that the button should display
      selected - if true, the button is initially selected; otherwise, the button is initially unselected
    • JideToggleButton

      public JideToggleButton(String text)
      Creates an unselected toggle button with the specified text.
      Parameters:
      text - the string displayed on the toggle button
    • JideToggleButton

      public JideToggleButton(String text, boolean selected)
      Creates a toggle button with the specified text and selection state.
      Parameters:
      text - the string displayed on the toggle button
      selected - if true, the button is initially selected; otherwise, the button is initially unselected
    • JideToggleButton

      public JideToggleButton(Action a)
      Creates a toggle button where properties are taken from the Action supplied.
      Parameters:
      a - Action
    • JideToggleButton

      public JideToggleButton(String text, Icon icon)
      Creates a toggle button that has the specified text and image, and that is initially unselected.
      Parameters:
      text - the string displayed on the button
      icon - the image that the button should display
    • JideToggleButton

      public JideToggleButton(String text, Icon icon, boolean selected)
      Creates a toggle button with the specified text, image, and selection state.
      Parameters:
      text - the text of the toggle button
      icon - the image that the button should display
      selected - if true, the button is initially selected; otherwise, the button is initially unselected
  • Method Details