@Test public void testSetHitPolicyNullControl() { editor.setHitPolicy(HitPolicy.ANY); verify(control, never()).setHitPolicy(any(HitPolicy.class), any(Command.class)); }
@Override public void setHitPolicy(final HitPolicy hitPolicy) { binding.ifPresent(b -> b.setHitPolicy(hitPolicy, this::refresh)); }
HitPolicyPopoverImpl extends AbstractPopoverImpl<HitPolicyPopoverView, HasHitPolicyControl> implements HitPolicyPopoverView.Presenter { @Override public void setHitPolicy(final HitPolicy hitPolicy) { binding.ifPresent(b -> b.setHitPolicy(hitPolicy, this::refresh)); } }
HitPolicyPopoverImpl extends AbstractPopoverImpl<HitPolicyPopoverView, HasHitPolicyControl> implements HitPolicyPopoverView.Presenter { @Override public void setHitPolicy(final HitPolicy hitPolicy) { binding.ifPresent(b -> b.setHitPolicy(hitPolicy, this::refresh)); } HitPolicyPopoverImpl(); @Inject  HitPolicyPopoverImpl(final HitPolicyPopoverView view,
                                final TranslationService translationService,
                                final BuiltinAggregatorUtils builtinAggregatorUtils); }
HitPolicyPopoverImpl extends AbstractPopoverImpl<HitPolicyPopoverView, HasHitPolicyControl> implements HitPolicyPopoverView.Presenter { @Override public void setHitPolicy(final HitPolicy hitPolicy) { binding.ifPresent(b -> b.setHitPolicy(hitPolicy, this::refresh)); } HitPolicyPopoverImpl(); @Inject  HitPolicyPopoverImpl(final HitPolicyPopoverView view,
                                final TranslationService translationService,
                                final BuiltinAggregatorUtils builtinAggregatorUtils); @Override String getPopoverTitle(); @Override void bind(final HasHitPolicyControl bound,
                     final int uiRowIndex,
                     final int uiColumnIndex); @Override void setHitPolicy(final HitPolicy hitPolicy); @Override void setBuiltinAggregator(final BuiltinAggregator aggregator); }
HitPolicyPopoverImpl extends AbstractPopoverImpl<HitPolicyPopoverView, HasHitPolicyControl> implements HitPolicyPopoverView.Presenter { @Override public void setHitPolicy(final HitPolicy hitPolicy) { binding.ifPresent(b -> b.setHitPolicy(hitPolicy, this::refresh)); } HitPolicyPopoverImpl(); @Inject  HitPolicyPopoverImpl(final HitPolicyPopoverView view,
                                final TranslationService translationService,
                                final BuiltinAggregatorUtils builtinAggregatorUtils); @Override String getPopoverTitle(); @Override void bind(final HasHitPolicyControl bound,
                     final int uiRowIndex,
                     final int uiColumnIndex); @Override void setHitPolicy(final HitPolicy hitPolicy); @Override void setBuiltinAggregator(final BuiltinAggregator aggregator);  }