groupNameCounter++;
return "group" + Integer.toString(groupNameCounter);
}
public void addChoice(String choice) {
IRadioButton button = display.generateRadioButton(groupName, choice);
if (radioButtons.isEmpty()) {
// first button in this group
defaultButton = button;
button.setValue(true);
}
radioButtons.add(button);
}