Class SplitButtonGroup

java.lang.Object
javax.swing.ButtonGroup
com.jidesoft.swing.SplitButtonGroup
All Implemented Interfaces:
Serializable

public class SplitButtonGroup extends ButtonGroup
SplitButtonGroup extends ButtonGroup to provide the same button grouping function for JideToggleSplitButton.

SplitButtonGroup supports regular JButton or JideButton as well.

See Also:
  • Constructor Details

    • SplitButtonGroup

      public SplitButtonGroup()
      Creates a new ButtonGroup.
  • Method Details

    • add

      public void add(AbstractButton b)
      Adds the button to the group.
      Overrides:
      add in class ButtonGroup
      Parameters:
      b - the button to be added
    • remove

      public void remove(AbstractButton b)
      Removes the button from the group.
      Overrides:
      remove in class ButtonGroup
      Parameters:
      b - the button to be removed
    • setSelected

      public void setSelected(ButtonModel m, boolean b)
      Sets the selected value for the ButtonModel. Only one button in the group may be selected at a time.
      Overrides:
      setSelected in class ButtonGroup
      Parameters:
      m - the ButtonModel
      b - true if this button is to be selected, otherwise false
    • isSelected

      public boolean isSelected(ButtonModel m)
      Returns whether a ButtonModel is selected.
      Overrides:
      isSelected in class ButtonGroup
      Returns:
      true if the button is selected, otherwise returns false