@Test public void testSetComboBoxValues() { List<String> values = Arrays.asList(new String[]{"age", "height", "sex"}); comboBoxFieldRenderer.setComboBoxValues(values); verify(comboBoxWidgetView, times(1)).setComboBoxValues(any(ListBoxValues.class)); }
protected void setComboBoxValues(final List<String> values) { valueListBoxValues = createDefaultListBoxValues(); valueListBoxValues.addValues(values); view.setComboBoxValues(valueListBoxValues); }
AbstractComboBoxFieldRenderer extends SelectorFieldRenderer<T, StringSelectorOption, String> { protected void setComboBoxValues(final List<String> values) { valueListBoxValues = createDefaultListBoxValues(); valueListBoxValues.addValues(values); view.setComboBoxValues(valueListBoxValues); } }
AbstractComboBoxFieldRenderer extends SelectorFieldRenderer<T, StringSelectorOption, String> { protected void setComboBoxValues(final List<String> values) { valueListBoxValues = createDefaultListBoxValues(); valueListBoxValues.addValues(values); view.setComboBoxValues(valueListBoxValues); } @Inject  AbstractComboBoxFieldRenderer(final ComboBoxWidgetView comboBoxEditor, final ClientTranslationService translationService); }
AbstractComboBoxFieldRenderer extends SelectorFieldRenderer<T, StringSelectorOption, String> { protected void setComboBoxValues(final List<String> values) { valueListBoxValues = createDefaultListBoxValues(); valueListBoxValues.addValues(values); view.setComboBoxValues(valueListBoxValues); } @Inject  AbstractComboBoxFieldRenderer(final ComboBoxWidgetView comboBoxEditor, final ClientTranslationService translationService);  }
AbstractComboBoxFieldRenderer extends SelectorFieldRenderer<T, StringSelectorOption, String> { protected void setComboBoxValues(final List<String> values) { valueListBoxValues = createDefaultListBoxValues(); valueListBoxValues.addValues(values); view.setComboBoxValues(valueListBoxValues); } @Inject  AbstractComboBoxFieldRenderer(final ComboBoxWidgetView comboBoxEditor, final ClientTranslationService translationService);   }