@Test public void testUpdateParameterNameNullControl() { presenter.updateParameterName(parameter, PARAMETER_NAME); verify(control, never()).updateParameterName(any(InformationItem.class), any(String.class), any(Command.class)); }
@Override public void updateParameterName(final InformationItem parameter, final String name) { binding.ifPresent(b -> { final String trimmedName = Objects.nonNull(name) ? name.trim() : ""; if (!Objects.equals(parameter.getName().getValue(), trimmedName)) { b.updateParameterName(parameter, trimmedName, () -> updateViewParameterName(b, parameter, trimmedName)); } else if (!Objects.equals(name, trimmedName)) { updateViewParameterName(b, parameter, trimmedName); } }); }
ParametersPopoverImpl extends AbstractPopoverImpl<ParametersPopoverView, HasParametersControl> implements ParametersPopoverView.Presenter { @Override public void updateParameterName(final InformationItem parameter, final String name) { binding.ifPresent(b -> { final String trimmedName = Objects.nonNull(name) ? name.trim() : ""; if (!Objects.equals(parameter.getName().getValue(), trimmedName)) { b.updateParameterName(parameter, trimmedName, () -> updateViewParameterName(b, parameter, trimmedName)); } else if (!Objects.equals(name, trimmedName)) { updateViewParameterName(b, parameter, trimmedName); } }); } }
ParametersPopoverImpl extends AbstractPopoverImpl<ParametersPopoverView, HasParametersControl> implements ParametersPopoverView.Presenter { @Override public void updateParameterName(final InformationItem parameter, final String name) { binding.ifPresent(b -> { final String trimmedName = Objects.nonNull(name) ? name.trim() : ""; if (!Objects.equals(parameter.getName().getValue(), trimmedName)) { b.updateParameterName(parameter, trimmedName, () -> updateViewParameterName(b, parameter, trimmedName)); } else if (!Objects.equals(name, trimmedName)) { updateViewParameterName(b, parameter, trimmedName); } }); } ParametersPopoverImpl(); @Inject  ParametersPopoverImpl(final ParametersPopoverView view,
                                 final TranslationService translationService); }
ParametersPopoverImpl extends AbstractPopoverImpl<ParametersPopoverView, HasParametersControl> implements ParametersPopoverView.Presenter { @Override public void updateParameterName(final InformationItem parameter, final String name) { binding.ifPresent(b -> { final String trimmedName = Objects.nonNull(name) ? name.trim() : ""; if (!Objects.equals(parameter.getName().getValue(), trimmedName)) { b.updateParameterName(parameter, trimmedName, () -> updateViewParameterName(b, parameter, trimmedName)); } else if (!Objects.equals(name, trimmedName)) { updateViewParameterName(b, parameter, trimmedName); } }); } ParametersPopoverImpl(); @Inject  ParametersPopoverImpl(final ParametersPopoverView view,
                                 final TranslationService translationService); @Override String getPopoverTitle(); @Override void bind(final HasParametersControl bound,
                     final int uiRowIndex,
                     final int uiColumnIndex); @Override void show(); @Override void addParameter(); @Override void removeParameter(final InformationItem parameter); @Override void updateParameterName(final InformationItem parameter,
                                    final String name); @Override void updateParameterTypeRef(final InformationItem parameter,
                                       final QName typeRef); }
ParametersPopoverImpl extends AbstractPopoverImpl<ParametersPopoverView, HasParametersControl> implements ParametersPopoverView.Presenter { @Override public void updateParameterName(final InformationItem parameter, final String name) { binding.ifPresent(b -> { final String trimmedName = Objects.nonNull(name) ? name.trim() : ""; if (!Objects.equals(parameter.getName().getValue(), trimmedName)) { b.updateParameterName(parameter, trimmedName, () -> updateViewParameterName(b, parameter, trimmedName)); } else if (!Objects.equals(name, trimmedName)) { updateViewParameterName(b, parameter, trimmedName); } }); } ParametersPopoverImpl(); @Inject  ParametersPopoverImpl(final ParametersPopoverView view,
                                 final TranslationService translationService); @Override String getPopoverTitle(); @Override void bind(final HasParametersControl bound,
                     final int uiRowIndex,
                     final int uiColumnIndex); @Override void show(); @Override void addParameter(); @Override void removeParameter(final InformationItem parameter); @Override void updateParameterName(final InformationItem parameter,
                                    final String name); @Override void updateParameterTypeRef(final InformationItem parameter,
                                       final QName typeRef);  }