swingwtx.swing
Class ButtonGroup

java.lang.Object
  extended byswingwtx.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
           
 
Constructor Summary
ButtonGroup()
           
 
Method Summary
 void add(AbstractButton b)
           
 int getButtonCount()
           
 java.util.Enumeration getElements()
           
 ButtonModel getSelection()
           
 boolean isSelected(ButtonModel m)
           
 void remove(AbstractButton b)
           
 void setSelected(ButtonModel m, boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buttons

protected java.util.Vector buttons
Constructor Detail

ButtonGroup

public ButtonGroup()
Method Detail

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()