java.io.Serializablepublic class SplitButtonGroup
extends javax.swing.ButtonGroup
| Constructor | Description |
|---|---|
SplitButtonGroup() |
Creates a new
ButtonGroup. |
| 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. |
public void add(javax.swing.AbstractButton b)
add in class javax.swing.ButtonGroupb - the button to be addedpublic void remove(javax.swing.AbstractButton b)
remove in class javax.swing.ButtonGroupb - the button to be removedpublic void setSelected(javax.swing.ButtonModel m,
boolean b)
ButtonModel.
Only one button in the group may be selected at a time.setSelected in class javax.swing.ButtonGroupm - the ButtonModelb - true if this button is to be
selected, otherwise falsepublic boolean isSelected(javax.swing.ButtonModel m)
ButtonModel is selected.isSelected in class javax.swing.ButtonGrouptrue if the button is selected,
otherwise returns false