@Test public void testIsEnter() { final KeyDownEvent keyDownEvent = mock(KeyDownEvent.class); when(keyDownEvent.getNativeKeyCode()).thenReturn(KeyCodes.KEY_ENTER); final boolean actual = view.isEnter(keyDownEvent); assertTrue(actual); }
boolean isEnter(final KeyDownEvent event) { return Objects.equals(event.getNativeKeyCode(), KeyCodes.KEY_ENTER); }
ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView { boolean isEnter(final KeyDownEvent event) { return Objects.equals(event.getNativeKeyCode(), KeyCodes.KEY_ENTER); } }
ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView { boolean isEnter(final KeyDownEvent event) { return Objects.equals(event.getNativeKeyCode(), KeyCodes.KEY_ENTER); } ValueAndDataTypePopoverViewImpl(); @Inject  ValueAndDataTypePopoverViewImpl(final Input valueEditor,
                                           final DataTypePickerWidget typeRefEditor,
                                           final Div popoverElement,
                                           final Div popoverContentElement,
                                           final Span valueLabel,
                                           final Span dataTypeLabel,
                                           final JQueryProducer.JQuery<Popover> jQueryPopover,
                                           final TranslationService translationService); }
ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView { boolean isEnter(final KeyDownEvent event) { return Objects.equals(event.getNativeKeyCode(), KeyCodes.KEY_ENTER); } ValueAndDataTypePopoverViewImpl(); @Inject  ValueAndDataTypePopoverViewImpl(final Input valueEditor,
                                           final DataTypePickerWidget typeRefEditor,
                                           final Div popoverElement,
                                           final Div popoverContentElement,
                                           final Span valueLabel,
                                           final Span dataTypeLabel,
                                           final JQueryProducer.JQuery<Popover> jQueryPopover,
                                           final TranslationService translationService); @Override void init(final Presenter presenter); String getCurrentValue(); QName getCurrentTypeRef(); @Override void setDMNModel(final DMNModelInstrumentedBase dmnModel); @Override void initValue(final String value); @Override void initSelectedTypeRef(final QName typeRef); @Override void show(final Optional<String> popoverTitle); @Override void hide(); void hide(final boolean applyChanges); @Override void reset(); @SuppressWarnings("unused") @EventHandler("valueEditor") void onValueEditorKeyDown(final KeyDownEvent event); }
ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView { boolean isEnter(final KeyDownEvent event) { return Objects.equals(event.getNativeKeyCode(), KeyCodes.KEY_ENTER); } ValueAndDataTypePopoverViewImpl(); @Inject  ValueAndDataTypePopoverViewImpl(final Input valueEditor,
                                           final DataTypePickerWidget typeRefEditor,
                                           final Div popoverElement,
                                           final Div popoverContentElement,
                                           final Span valueLabel,
                                           final Span dataTypeLabel,
                                           final JQueryProducer.JQuery<Popover> jQueryPopover,
                                           final TranslationService translationService); @Override void init(final Presenter presenter); String getCurrentValue(); QName getCurrentTypeRef(); @Override void setDMNModel(final DMNModelInstrumentedBase dmnModel); @Override void initValue(final String value); @Override void initSelectedTypeRef(final QName typeRef); @Override void show(final Optional<String> popoverTitle); @Override void hide(); void hide(final boolean applyChanges); @Override void reset(); @SuppressWarnings("unused") @EventHandler("valueEditor") void onValueEditorKeyDown(final KeyDownEvent event);  }