OLD | NEW |
(Empty) | |
| 1 package autotest.afe; |
| 2 |
| 3 import autotest.afe.IRadioButton.RadioButtonImpl; |
| 4 |
| 5 import com.google.gwt.user.client.ui.Composite; |
| 6 import com.google.gwt.user.client.ui.HorizontalPanel; |
| 7 import com.google.gwt.user.client.ui.Panel; |
| 8 |
| 9 public class ControlTypeSelectDisplay extends Composite implements ControlTypeSe
lect.Display { |
| 10 public static final String RADIO_GROUP = "controlTypeGroup"; |
| 11 |
| 12 private RadioButtonImpl client = new RadioButtonImpl(RADIO_GROUP); |
| 13 private RadioButtonImpl server = new RadioButtonImpl(RADIO_GROUP); |
| 14 private Panel panel = new HorizontalPanel(); |
| 15 |
| 16 public ControlTypeSelectDisplay() { |
| 17 panel.add(client); |
| 18 panel.add(server); |
| 19 client.setValue(true); // client is default |
| 20 initWidget(panel); |
| 21 } |
| 22 |
| 23 public IRadioButton getClient() { |
| 24 return client; |
| 25 } |
| 26 |
| 27 public IRadioButton getServer() { |
| 28 return server; |
| 29 } |
| 30 } |
OLD | NEW |