예제 #1
0
  public void bindDisplay(Display display) {
    this.display = display;

    display.getTestTypeSelect().addItem(CLIENT_TYPE, CLIENT_TYPE);
    display.getTestTypeSelect().addItem(SERVER_TYPE, SERVER_TYPE);
    display.getTestTypeSelect().addChangeHandler(this);

    display.getTestTable().setWidgetFactory(this);
    display.getTestTable().addListener(this);

    populateTests();

    display.getTestSelection().addListener(this);
  }
예제 #2
0
 public void reset() {
   display.getTestTypeSelect().selectByName(CLIENT_TYPE);
   populateTests();
 }
예제 #3
0
 public void setEnabled(boolean enabled) {
   this.enabled = enabled;
   display.getTestTypeSelect().setEnabled(enabled);
   display.getTestTable().refreshWidgets();
 }
예제 #4
0
 public String getSelectedTestType() {
   return display.getTestTypeSelect().getSelectedName();
 }