waba.ui
Class RadioGroup
java.lang.Object
|
+--waba.ui.RadioGroup
- public class RadioGroup
- extends Object
RadioGroup is a Radio control grouper.
It handles the click on a radio, unchecking the last selected one.
Use it as:
RadioGroup rg = new RadioGroup();
Radio r1 = new Radio("radio 1",rg);
Radio r2 = new Radio("radio 2",rg);
Radio r3 = new Radio("radio 3",rg);
rg.clicked(r1); // activate r1 only
Note: there is no need (and you can't) add a RadioGroup to a container,
since a RadioGroup is a class that doesn't extend Control.
RadioGroup
public RadioGroup()
add
public void add(Radio newMember)
remove
public void remove(Radio oldMember)
clicked
public void clicked(Radio who)
- Called by the Radio when a click was made