@Test public void testOnFunctionKindSelectedWhenBound() { popover.bind(hasKindSelectorControl, 0, 0); popover.onFunctionKindSelected(kind); verify(hasKindSelectorControl).setFunctionKind(eq(FunctionDefinition.Kind.JAVA)); verify(view).hide(); }
@Override public void onFunctionKindSelected(final FunctionDefinition.Kind kind) { binding.ifPresent(b -> { b.setFunctionKind(kind); view.hide(); }); }
KindPopoverImpl extends AbstractPopoverImpl<KindPopoverView, HasKindSelectControl> implements KindPopoverView.Presenter { @Override public void onFunctionKindSelected(final FunctionDefinition.Kind kind) { binding.ifPresent(b -> { b.setFunctionKind(kind); view.hide(); }); } }
KindPopoverImpl extends AbstractPopoverImpl<KindPopoverView, HasKindSelectControl> implements KindPopoverView.Presenter { @Override public void onFunctionKindSelected(final FunctionDefinition.Kind kind) { binding.ifPresent(b -> { b.setFunctionKind(kind); view.hide(); }); } KindPopoverImpl(); @Inject  KindPopoverImpl(final KindPopoverView view,
                           final TranslationService translationService); }
KindPopoverImpl extends AbstractPopoverImpl<KindPopoverView, HasKindSelectControl> implements KindPopoverView.Presenter { @Override public void onFunctionKindSelected(final FunctionDefinition.Kind kind) { binding.ifPresent(b -> { b.setFunctionKind(kind); view.hide(); }); } KindPopoverImpl(); @Inject  KindPopoverImpl(final KindPopoverView view,
                           final TranslationService translationService); @Override String getPopoverTitle(); @Override void onFunctionKindSelected(final FunctionDefinition.Kind kind); }
KindPopoverImpl extends AbstractPopoverImpl<KindPopoverView, HasKindSelectControl> implements KindPopoverView.Presenter { @Override public void onFunctionKindSelected(final FunctionDefinition.Kind kind) { binding.ifPresent(b -> { b.setFunctionKind(kind); view.hide(); }); } KindPopoverImpl(); @Inject  KindPopoverImpl(final KindPopoverView view,
                           final TranslationService translationService); @Override String getPopoverTitle(); @Override void onFunctionKindSelected(final FunctionDefinition.Kind kind);  }