Beispiel #1
0
  public void bindDisplay(Display display) {
    this.display = display;
    display.getFixedValuesToggle().addClickHandler(this);
    display.setFixedValuesVisible(false);
    multiListSelect.bindDisplay(display.getDoubleListDisplay());
    multiListSelect.bindToggleDisplay(display.getToggleDisplay());
    parameterizedFieldPresenter.bindDisplay(display.getParameterizedFieldDisplay());

    for (HeaderField field : headerFields) {
      multiListSelect.addItem(field.getItem());
    }
    multiListSelect.addItem(ParameterizedField.getGenerator(MachineLabelField.BASE_NAME));
  }
Beispiel #2
0
 private boolean isFixedValuesActive() {
   return !display.getToggleDisplay().getToggleMultipleLink().isActive()
       && display.getFixedValuesToggle().isActive();
 }