Exemple #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);
  }
Exemple #2
0
 public void reset() {
   display.getTestTypeSelect().selectByName(CLIENT_TYPE);
   populateTests();
 }
Exemple #3
0
 public void setEnabled(boolean enabled) {
   this.enabled = enabled;
   display.getTestTypeSelect().setEnabled(enabled);
   display.getTestTable().refreshWidgets();
 }
Exemple #4
0
 public String getSelectedTestType() {
   return display.getTestTypeSelect().getSelectedName();
 }