Exemplo n.º 1
0
 private void addParameterizedFields(String[] sqlNames) {
   for (String sqlName : sqlNames) {
     if (!headerFields.containsSqlName(sqlName)) {
       ParameterizedField field = ParameterizedField.fromSqlName(sqlName);
       parameterizedFieldPresenter.addField(field);
     }
   }
 }
Exemplo n.º 2
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));
  }
Exemplo n.º 3
0
 public void updateViewFromState() {
   selectItemsInView(savedSelectedFields);
   display.getFixedValuesInput().setText(savedFixedValues);
   display.getFixedValuesToggle().setActive(!savedFixedValues.equals(""));
   parameterizedFieldPresenter.updateViewFromState();
 }
Exemplo n.º 4
0
 public void updateStateFromView() {
   savedSelectedFields = getSelectedItemsFromView();
   savedFixedValues = getFixedValuesText();
   parameterizedFieldPresenter.updateStateFromView();
 }
Exemplo n.º 5
0
 /** @return true if all machine label header inputs are not empty. */
 public boolean checkMachineLabelHeaders() {
   return parameterizedFieldPresenter.areAllInputsFilled();
 }