| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.ButtonGroup
public class ButtonGroup
A container of radio buttons which allows at most one radio button to be selected.
| Constructor Summary | |
|---|---|
ButtonGroup()
Creates a new ButtonGroup.  | 
|
| Method Summary | |
|---|---|
 void | 
add(AbstractButton button)
Adds the button to the group.  | 
 int | 
getButtonCount()
Returns the number of buttons in the group.  | 
 java.util.Iterator | 
getElements()
Returns all the buttons that are participating in this group.  | 
 ButtonModel | 
getSelection()
Returns the selected button model.  | 
 boolean | 
isSelected(ButtonModel buttonModel)
Returns the selected value for the button.  | 
 void | 
remove(AbstractButton button)
Removes the button from the group.  | 
 void | 
setSelected(ButtonModel buttonModel,
            boolean selected)
Sets the selected value for the button.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ButtonGroup()
| Method Detail | 
|---|
public void add(AbstractButton button)
button - The button to add to the group.public int getButtonCount()
public java.util.Iterator getElements()
public ButtonModel getSelection()
public boolean isSelected(ButtonModel buttonModel)
buttonModel - The button on which to test selection.
public void remove(AbstractButton button)
button - The button to remove from the group.
public void setSelected(ButtonModel buttonModel,
                        boolean selected)
buttonModel - The button whose state is to be changed.selected - The new state for the button.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||