|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.ButtonGroup com.jidesoft.swing.SplitButtonGroup
public class SplitButtonGroup
SplitButtonGroup extends ButtonGroup to provide the same button grouping function for JideToggleSplitButton.
SplitButtonGroup supports regular JButton or JideButton as well.
Field Summary |
---|
Fields inherited from class javax.swing.ButtonGroup |
---|
buttons |
Constructor Summary | |
---|---|
SplitButtonGroup()
Creates a new ButtonGroup . |
Method Summary | |
---|---|
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 . |
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 |
---|
public SplitButtonGroup()
ButtonGroup
.
Method Detail |
---|
public void add(AbstractButton b)
add
in class ButtonGroup
b
- the button to be addedpublic void remove(AbstractButton b)
remove
in class ButtonGroup
b
- 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 ButtonGroup
m
- the ButtonModel
b
- true
if this button is to be
selected, otherwise false
public boolean isSelected(ButtonModel m)
ButtonModel
is selected.
isSelected
in class ButtonGroup
true
if the button is selected,
otherwise returns false
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |