this.radioComp2 = (ItsNatFreeRadioButton)componentMgr.findItsNatComponent(elem2);
HTMLElement elem3 = (HTMLElement)doc.getElementById(id + "3");
this.radioComp3 = (ItsNatFreeRadioButton)componentMgr.findItsNatComponent(elem3);
ToggleButtonModel dataModel1 = new ToggleButtonModel();
radioComp1.setButtonModel(dataModel1);
ToggleButtonModel dataModel2 = new ToggleButtonModel();
radioComp2.setButtonModel(dataModel2);
ToggleButtonModel dataModel3 = new ToggleButtonModel();
radioComp3.setButtonModel(dataModel3);
ButtonGroup group = new ButtonGroup();
ItsNatButtonGroup htmlGroup = componentMgr.getItsNatButtonGroup(group);
htmlGroup.addButton(radioComp1);
htmlGroup.addButton(radioComp2);
htmlGroup.addButton(radioComp3);
TestUtil.checkError(htmlGroup == componentMgr.getItsNatButtonGroup(group));
TestUtil.checkError(htmlGroup == componentMgr.getItsNatButtonGroup(htmlGroup.getName()));
TestUtil.checkError(radioComp1.getItsNatButtonGroup().getButtonCount() == 3);
TestFreeRadio listener1 = new TestFreeRadio("1",elem1,itsNatDoc);
radioComp1.addEventListener("click",listener1);
dataModel1.addChangeListener(listener1);
TestFreeRadio listener2 = new TestFreeRadio("2",elem2,itsNatDoc);
radioComp2.addEventListener("click",listener2);
dataModel2.addChangeListener(listener2);
TestFreeRadio listener3 = new TestFreeRadio("3",elem3,itsNatDoc);
radioComp3.addEventListener("click",listener3);
dataModel3.addChangeListener(listener3);
}