OLD | NEW |
| (Empty) |
1 package autotest.common.ui; | |
2 | |
3 import autotest.afe.IRadioButton; | |
4 import autotest.afe.IRadioButton.RadioButtonImpl; | |
5 | |
6 import com.google.gwt.user.client.ui.Composite; | |
7 import com.google.gwt.user.client.ui.HorizontalPanel; | |
8 import com.google.gwt.user.client.ui.Panel; | |
9 | |
10 public class RadioChooserDisplay extends Composite implements RadioChooser.Displ
ay { | |
11 private Panel container = new HorizontalPanel(); | |
12 | |
13 public RadioChooserDisplay() { | |
14 initWidget(container); | |
15 setStyleName("radio-chooser"); | |
16 } | |
17 | |
18 public IRadioButton generateRadioButton(String groupName, String choice) { | |
19 RadioButtonImpl radioButton = new RadioButtonImpl(groupName, choice); | |
20 container.add(radioButton); | |
21 return radioButton; | |
22 } | |
23 } | |
OLD | NEW |