Class SplitButtonGroup

  • All Implemented Interfaces:
    java.io.Serializable

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

    SplitButtonGroup supports regular JButton or JideButton as well.

    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.ButtonGroup

        buttons
    • Constructor Summary

      Constructors 
      Constructor Description
      SplitButtonGroup()
      Creates a new ButtonGroup.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(javax.swing.AbstractButton b)
      Adds the button to the group.
      boolean isSelected​(javax.swing.ButtonModel m)
      Returns whether a ButtonModel is selected.
      void remove​(javax.swing.AbstractButton b)
      Removes the button from the group.
      void setSelected​(javax.swing.ButtonModel m, boolean b)
      Sets the selected value for the ButtonModel.
      • Methods inherited from class javax.swing.ButtonGroup

        clearSelection, getButtonCount, getElements, getSelection
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SplitButtonGroup

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

      • add

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

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

        public void setSelected​(javax.swing.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 javax.swing.ButtonGroup
        Parameters:
        m - the ButtonModel
        b - true if this button is to be selected, otherwise false
      • isSelected

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