Package com.jidesoft.swing
Class SplitButtonGroup
- java.lang.Object
-
- javax.swing.ButtonGroup
-
- com.jidesoft.swing.SplitButtonGroup
-
- All Implemented Interfaces:
java.io.Serializable
public class SplitButtonGroup extends javax.swing.ButtonGroupSplitButtonGroup extends ButtonGroup to provide the same button grouping function for JideToggleSplitButton. SplitButtonGroup supports regular JButton or JideButton as well.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SplitButtonGroup()Creates a newButtonGroup.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(javax.swing.AbstractButton b)Adds the button to the group.booleanisSelected(javax.swing.ButtonModel m)Returns whether aButtonModelis selected.voidremove(javax.swing.AbstractButton b)Removes the button from the group.voidsetSelected(javax.swing.ButtonModel m, boolean b)Sets the selected value for theButtonModel.
-
-
-
Method Detail
-
add
public void add(javax.swing.AbstractButton b)
Adds the button to the group.- Overrides:
addin classjavax.swing.ButtonGroup- Parameters:
b- the button to be added
-
remove
public void remove(javax.swing.AbstractButton b)
Removes the button from the group.- Overrides:
removein classjavax.swing.ButtonGroup- Parameters:
b- the button to be removed
-
setSelected
public void setSelected(javax.swing.ButtonModel m, boolean b)Sets the selected value for theButtonModel. Only one button in the group may be selected at a time.- Overrides:
setSelectedin classjavax.swing.ButtonGroup- Parameters:
m- theButtonModelb-trueif this button is to be selected, otherwisefalse
-
isSelected
public boolean isSelected(javax.swing.ButtonModel m)
Returns whether aButtonModelis selected.- Overrides:
isSelectedin classjavax.swing.ButtonGroup- Returns:
trueif the button is selected, otherwise returnsfalse
-
-