@Test public void setListBoxModelValue() { assertNull(tested.getModel().getClassName()); tested.setListBoxModelValue(defaultClassNames, "Boolean"); assertEquals("Boolean", tested.getModel().getClassName()); assertEquals("Boolean", tested.getModelValue(defaultClassNames)); }
@Override public void setListBoxModelValue(final ValueListBox<String> listBox, final String displayName) { String value = parentWidget.getDataType(displayName); getModel().setClassName(value); }
DefaultImportListItemWidgetView extends Composite implements ImportListItemWidgetView<DefaultImport>,
                                                                          ComboBoxView.ModelPresenter { @Override public void setListBoxModelValue(final ValueListBox<String> listBox, final String displayName) { String value = parentWidget.getDataType(displayName); getModel().setClassName(value); } }
DefaultImportListItemWidgetView extends Composite implements ImportListItemWidgetView<DefaultImport>,
                                                                          ComboBoxView.ModelPresenter { @Override public void setListBoxModelValue(final ValueListBox<String> listBox, final String displayName) { String value = parentWidget.getDataType(displayName); getModel().setClassName(value); }  }
DefaultImportListItemWidgetView extends Composite implements ImportListItemWidgetView<DefaultImport>,
                                                                          ComboBoxView.ModelPresenter { @Override public void setListBoxModelValue(final ValueListBox<String> listBox, final String displayName) { String value = parentWidget.getDataType(displayName); getModel().setClassName(value); }  @Override void setParentWidget(final ImportsEditorWidgetView.Presenter<DefaultImport> parentWidget); @Override void setTextBoxModelValue(final TextBox textBox, final String value); @Override void setListBoxModelValue(final ValueListBox<String> listBox, final String displayName); @Override String getModelValue(final ValueListBox<String> listBox); @Override void notifyModelChanged(); @PostConstruct void init(); @Override DefaultImport getModel(); @Override void setModel(final DefaultImport model); @EventHandler("deleteButton") void handleDeleteButton(final ClickEvent e); }
DefaultImportListItemWidgetView extends Composite implements ImportListItemWidgetView<DefaultImport>,
                                                                          ComboBoxView.ModelPresenter { @Override public void setListBoxModelValue(final ValueListBox<String> listBox, final String displayName) { String value = parentWidget.getDataType(displayName); getModel().setClassName(value); }  @Override void setParentWidget(final ImportsEditorWidgetView.Presenter<DefaultImport> parentWidget); @Override void setTextBoxModelValue(final TextBox textBox, final String value); @Override void setListBoxModelValue(final ValueListBox<String> listBox, final String displayName); @Override String getModelValue(final ValueListBox<String> listBox); @Override void notifyModelChanged(); @PostConstruct void init(); @Override DefaultImport getModel(); @Override void setModel(final DefaultImport model); @EventHandler("deleteButton") void handleDeleteButton(final ClickEvent e);  }