Serializablepublic class SplitButtonGroup extends ButtonGroup
buttons| Constructor | Description |
|---|---|
SplitButtonGroup() |
Creates a new
ButtonGroup. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(AbstractButton b) |
Adds the button to the group.
|
boolean |
isSelected(ButtonModel m) |
Returns whether a
ButtonModel is selected. |
void |
remove(AbstractButton b) |
Removes the button from the group.
|
void |
setSelected(ButtonModel m,
boolean b) |
Sets the selected value for the
ButtonModel. |
clearSelection, getButtonCount, getElements, getSelectionpublic void add(AbstractButton b)
add in class ButtonGroupb - the button to be addedpublic void remove(AbstractButton b)
remove in class ButtonGroupb - the button to be removedpublic void setSelected(ButtonModel m, boolean b)
ButtonModel.
Only one button in the group may be selected at a time.setSelected in class ButtonGroupm - the ButtonModelb - true if this button is to be
selected, otherwise falsepublic boolean isSelected(ButtonModel m)
ButtonModel is selected.isSelected in class ButtonGrouptrue if the button is selected,
otherwise returns false