@Test public void testSetComboBoxValues() { ListBoxValues listBoxValues = new ListBoxValues(null, null, null); view.setComboBoxValues(listBoxValues); verify(valueComboBox, times(1)).setCurrentTextValue(""); verify(valueComboBox, times(1)).setListBoxValues(listBoxValues); verify(valueComboBox, times(1)).setShowCustomValues(true); }
@Override public void setComboBoxValues(final ListBoxValues valueListBoxValues) { this.listBoxValues = valueListBoxValues; valueComboBox.setCurrentTextValue(""); valueComboBox.setListBoxValues(valueListBoxValues); valueComboBox.setShowCustomValues(true); if (dataModel.customValue != null && !dataModel.customValue.isEmpty()) { valueComboBox.addCustomValueToListBoxValues(currentValue, ""); } }
ComboBoxWidgetViewImpl extends Composite implements ComboBoxWidgetView,
                                                                 ComboBoxView.ModelPresenter,
                                                                 HasValue<String> { @Override public void setComboBoxValues(final ListBoxValues valueListBoxValues) { this.listBoxValues = valueListBoxValues; valueComboBox.setCurrentTextValue(""); valueComboBox.setListBoxValues(valueListBoxValues); valueComboBox.setShowCustomValues(true); if (dataModel.customValue != null && !dataModel.customValue.isEmpty()) { valueComboBox.addCustomValueToListBoxValues(currentValue, ""); } } }
ComboBoxWidgetViewImpl extends Composite implements ComboBoxWidgetView,
                                                                 ComboBoxView.ModelPresenter,
                                                                 HasValue<String> { @Override public void setComboBoxValues(final ListBoxValues valueListBoxValues) { this.listBoxValues = valueListBoxValues; valueComboBox.setCurrentTextValue(""); valueComboBox.setListBoxValues(valueListBoxValues); valueComboBox.setShowCustomValues(true); if (dataModel.customValue != null && !dataModel.customValue.isEmpty()) { valueComboBox.addCustomValueToListBoxValues(currentValue, ""); } }  }
ComboBoxWidgetViewImpl extends Composite implements ComboBoxWidgetView,
                                                                 ComboBoxView.ModelPresenter,
                                                                 HasValue<String> { @Override public void setComboBoxValues(final ListBoxValues valueListBoxValues) { this.listBoxValues = valueListBoxValues; valueComboBox.setCurrentTextValue(""); valueComboBox.setListBoxValues(valueListBoxValues); valueComboBox.setShowCustomValues(true); if (dataModel.customValue != null && !dataModel.customValue.isEmpty()) { valueComboBox.addCustomValueToListBoxValues(currentValue, ""); } }  @PostConstruct void init(); @Override String getValue(); @Override void setValue(final String value); @Override void setValue(final String newValue,
                         final boolean fireEvents); @Override void setComboBoxValues(final ListBoxValues valueListBoxValues); @Override HandlerRegistration addValueChangeHandler(ValueChangeHandler<String> handler); @Override void setReadOnly(boolean readOnly); @Override void setTextBoxModelValue(final TextBox textBox,
                                     final String value); @Override void setListBoxModelValue(final ValueListBox<String> listBox,
                                     final String value); @Override String getModelValue(final ValueListBox<String> listBox); @Override void notifyModelChanged(); String getCurrentValue(); }
ComboBoxWidgetViewImpl extends Composite implements ComboBoxWidgetView,
                                                                 ComboBoxView.ModelPresenter,
                                                                 HasValue<String> { @Override public void setComboBoxValues(final ListBoxValues valueListBoxValues) { this.listBoxValues = valueListBoxValues; valueComboBox.setCurrentTextValue(""); valueComboBox.setListBoxValues(valueListBoxValues); valueComboBox.setShowCustomValues(true); if (dataModel.customValue != null && !dataModel.customValue.isEmpty()) { valueComboBox.addCustomValueToListBoxValues(currentValue, ""); } }  @PostConstruct void init(); @Override String getValue(); @Override void setValue(final String value); @Override void setValue(final String newValue,
                         final boolean fireEvents); @Override void setComboBoxValues(final ListBoxValues valueListBoxValues); @Override HandlerRegistration addValueChangeHandler(ValueChangeHandler<String> handler); @Override void setReadOnly(boolean readOnly); @Override void setTextBoxModelValue(final TextBox textBox,
                                     final String value); @Override void setListBoxModelValue(final ValueListBox<String> listBox,
                                     final String value); @Override String getModelValue(final ValueListBox<String> listBox); @Override void notifyModelChanged(); String getCurrentValue();  }