OLD | NEW |
(Empty) | |
| 1 package autotest.planner; |
| 2 |
| 3 import autotest.common.Utils; |
| 4 |
| 5 import com.google.gwt.event.dom.client.HasClickHandlers; |
| 6 import com.google.gwt.event.dom.client.HasKeyPressHandlers; |
| 7 import com.google.gwt.user.client.ui.Button; |
| 8 import com.google.gwt.user.client.ui.Composite; |
| 9 import com.google.gwt.user.client.ui.HTMLPanel; |
| 10 import com.google.gwt.user.client.ui.HasText; |
| 11 import com.google.gwt.user.client.ui.TextBox; |
| 12 |
| 13 public class TestPlanSelectorDisplay extends Composite implements TestPlanSelect
or.Display { |
| 14 |
| 15 private TextBox inputField; |
| 16 private Button show; |
| 17 |
| 18 public void initialize() { |
| 19 HTMLPanel panel = Utils.divToPanel("test_plan_selector"); |
| 20 |
| 21 inputField = new TextBox(); |
| 22 panel.add(inputField, "test_plan_selector_input"); |
| 23 |
| 24 show = new Button("show"); |
| 25 panel.add(show, "test_plan_selector_button"); |
| 26 |
| 27 initWidget(panel); |
| 28 } |
| 29 |
| 30 public HasText getInputText() { |
| 31 return inputField; |
| 32 } |
| 33 |
| 34 public HasKeyPressHandlers getInputField() { |
| 35 return inputField; |
| 36 } |
| 37 |
| 38 public HasClickHandlers getShowButton() { |
| 39 return show; |
| 40 } |
| 41 } |
OLD | NEW |