swingwtx.swing
Class ButtonGroup
java.lang.Object
swingwtx.swing.ButtonGroup
- Direct Known Subclasses:
- CheckboxGroup
- public class ButtonGroup
- extends java.lang.Object
This class is used to create a multiple-exclusion scope for
a set of buttons. Creating a set of buttons with the
same ButtonGroup
object means that
turning "on" one of those buttons
turns off all other buttons in the group.
Field Summary |
protected java.util.Vector |
buttons
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buttons
protected java.util.Vector buttons
ButtonGroup
public ButtonGroup()
add
public void add(AbstractButton b)
remove
public void remove(AbstractButton b)
getElements
public java.util.Enumeration getElements()
getSelection
public ButtonModel getSelection()
setSelected
public void setSelected(ButtonModel m,
boolean b)
isSelected
public boolean isSelected(ButtonModel m)
getButtonCount
public int getButtonCount()