JIDE 3.5.15

com.jidesoft.swing
Class SplitButtonGroup

java.lang.Object
  extended by javax.swing.ButtonGroup
      extended by com.jidesoft.swing.SplitButtonGroup
All Implemented Interfaces:
Serializable

public class SplitButtonGroup
extends 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
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

SplitButtonGroup

public SplitButtonGroup()
Creates a new ButtonGroup.

Method Detail

add

public void add(AbstractButton b)
Adds the button to the group.

Overrides:
add in class ButtonGroup
Parameters:
b - the button to be added

remove

public void remove(AbstractButton b)
Removes the button from the group.

Overrides:
remove in class ButtonGroup
Parameters:
b - the button to be removed

setSelected

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

isSelected

public boolean isSelected(ButtonModel m)
Returns whether a ButtonModel is selected.

Overrides:
isSelected in class ButtonGroup
Returns:
true if the button is selected, otherwise returns false

JIDE 3.5.15