@Test public void testOnGenericInputBlur() { final BlurEvent blurEvent = mock(BlurEvent.class); selectorView.setOnInputBlurCallback(blurEventConsumer); selectorView.onGenericInputBlur(blurEvent); verify(blurEventConsumer).accept(blurEvent); }
@EventHandler("generic-input") void onGenericInputBlur(final BlurEvent blurEvent) { getOnValueInputBlur().ifPresent(consumer -> consumer.accept(blurEvent)); }
BaseSelectorView implements BaseSelector.View { @EventHandler("generic-input") void onGenericInputBlur(final BlurEvent blurEvent) { getOnValueInputBlur().ifPresent(consumer -> consumer.accept(blurEvent)); } }
BaseSelectorView implements BaseSelector.View { @EventHandler("generic-input") void onGenericInputBlur(final BlurEvent blurEvent) { getOnValueInputBlur().ifPresent(consumer -> consumer.accept(blurEvent)); } @Inject  BaseSelectorView(final HTMLInputElement input); }
BaseSelectorView implements BaseSelector.View { @EventHandler("generic-input") void onGenericInputBlur(final BlurEvent blurEvent) { getOnValueInputBlur().ifPresent(consumer -> consumer.accept(blurEvent)); } @Inject  BaseSelectorView(final HTMLInputElement input); @Override void init(final BaseSelector presenter); @Override String getValue(); @Override void setValue(final String value); @Override void setPlaceholder(final String placeholder); @Override void setOnInputChangeCallback(final Consumer<Event> onValueChangeConsumer); @Override void select(); @Override void setOnInputBlurCallback(final Consumer<BlurEvent> onValueInputBlur); @Override void setInputType(final String type); }
BaseSelectorView implements BaseSelector.View { @EventHandler("generic-input") void onGenericInputBlur(final BlurEvent blurEvent) { getOnValueInputBlur().ifPresent(consumer -> consumer.accept(blurEvent)); } @Inject  BaseSelectorView(final HTMLInputElement input); @Override void init(final BaseSelector presenter); @Override String getValue(); @Override void setValue(final String value); @Override void setPlaceholder(final String placeholder); @Override void setOnInputChangeCallback(final Consumer<Event> onValueChangeConsumer); @Override void select(); @Override void setOnInputBlurCallback(final Consumer<BlurEvent> onValueInputBlur); @Override void setInputType(final String type);  }