Пример #1
0
  private void initComboBoxTest(
      boolean quoteStringValues,
      String customPrompt,
      String placeholder,
      String editPrefix,
      String editSuffix,
      List<String> listBoxStartValues) {
    initPresenter();
    initListBox();
    initTextBox();

    ListBoxValues listBoxValues = new ListBoxValues(customPrompt, editPrefix, null);
    listBoxValues.addValues(listBoxStartValues);

    comboBox.view = view;
    comboBox.init(modelPresenter, listBox, textBox, quoteStringValues, customPrompt, placeholder);
    comboBox.setListBoxValues(listBoxValues);
    comboBox.setShowCustomValues(true);

    this.quoteStringValues = quoteStringValues;
    this.editPrefix = editPrefix;
    this.editSuffix = editSuffix;
    this.customPrompt = customPrompt;
  }