@Test public void setTextBoxModelValue() { tested.setTextBoxModelValue(customClassName, "abc"); tested.setTextBoxModelValue(customClassName, ""); tested.setTextBoxModelValue(customClassName, null); assertEquals("abc", tested.getModel().getClassName()); assertEquals("abc", tested.getModelValue(null)); }
@Override public void setTextBoxModelValue(final TextBox textBox, final String value) { if (value != null && !value.isEmpty()) { getModel().setClassName(value); } }
DefaultImportListItemWidgetView extends Composite implements ImportListItemWidgetView<DefaultImport>,
                                                                          ComboBoxView.ModelPresenter { @Override public void setTextBoxModelValue(final TextBox textBox, final String value) { if (value != null && !value.isEmpty()) { getModel().setClassName(value); } } }
DefaultImportListItemWidgetView extends Composite implements ImportListItemWidgetView<DefaultImport>,
                                                                          ComboBoxView.ModelPresenter { @Override public void setTextBoxModelValue(final TextBox textBox, final String value) { if (value != null && !value.isEmpty()) { getModel().setClassName(value); } }  }
DefaultImportListItemWidgetView extends Composite implements ImportListItemWidgetView<DefaultImport>,
                                                                          ComboBoxView.ModelPresenter { @Override public void setTextBoxModelValue(final TextBox textBox, final String value) { if (value != null && !value.isEmpty()) { 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 setTextBoxModelValue(final TextBox textBox, final String value) { if (value != null && !value.isEmpty()) { 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);  }