@Test @SuppressWarnings("unchecked") public void makeOnCreationCallbackListBoxMultipleSelectMoreThanMaximum() { setupMultipleSelectTest(ConsumerFactory.MAX_VISIBLE_ROWS + 1, true); final Consumer callback = ConsumerFactory.makeOnCreationCallback(factory, cell, enumLookups); callback.accept(multiValueDOMElement); verify(multiValueWidget).setVisibleItemCount(eq(ConsumerFactory.MAX_VISIBLE_ROWS)); verifyMultipleSelectTest(ConsumerFactory.MAX_VISIBLE_ROWS + 1); }
public static <T, W extends TextBox, E extends SingleValueDOMElement<T, W>, F extends SingleValueSingletonDOMElementFactory<T, W, E>> Consumer<E> makeOnCreationCallback(final F factory, final GridCell<T> cell) { return (e) -> { if (hasValue(cell)) { e.getWidget().setValue(factory.convert(cell.getValue().getValue())); } else { e.getWidget().setValue(""); } }; }
ConsumerFactory { public static <T, W extends TextBox, E extends SingleValueDOMElement<T, W>, F extends SingleValueSingletonDOMElementFactory<T, W, E>> Consumer<E> makeOnCreationCallback(final F factory, final GridCell<T> cell) { return (e) -> { if (hasValue(cell)) { e.getWidget().setValue(factory.convert(cell.getValue().getValue())); } else { e.getWidget().setValue(""); } }; } }
ConsumerFactory { public static <T, W extends TextBox, E extends SingleValueDOMElement<T, W>, F extends SingleValueSingletonDOMElementFactory<T, W, E>> Consumer<E> makeOnCreationCallback(final F factory, final GridCell<T> cell) { return (e) -> { if (hasValue(cell)) { e.getWidget().setValue(factory.convert(cell.getValue().getValue())); } else { e.getWidget().setValue(""); } }; }  }
ConsumerFactory { public static <T, W extends TextBox, E extends SingleValueDOMElement<T, W>, F extends SingleValueSingletonDOMElementFactory<T, W, E>> Consumer<E> makeOnCreationCallback(final F factory, final GridCell<T> cell) { return (e) -> { if (hasValue(cell)) { e.getWidget().setValue(factory.convert(cell.getValue().getValue())); } else { e.getWidget().setValue(""); } }; }  static Consumer<E> makeOnCreationCallback(final F factory,
                                                                                                                                                                             final GridCell<T> cell); static Consumer<E> makeOnDisplayTextBoxCallback(); static Consumer<E> makeOnCreationCallback(final F factory,
                                                                                                                                                                           final GridCell<T> cell,
                                                                                                                                                                           final Map<String, String> enumLookups); static Consumer<E> makeOnDisplayListBoxCallback(); static Consumer<E> makeOnCreationCallback(final GridCell<Date> cell); static Consumer<E> makeOnDisplayDatePickerCallback(); }
ConsumerFactory { public static <T, W extends TextBox, E extends SingleValueDOMElement<T, W>, F extends SingleValueSingletonDOMElementFactory<T, W, E>> Consumer<E> makeOnCreationCallback(final F factory, final GridCell<T> cell) { return (e) -> { if (hasValue(cell)) { e.getWidget().setValue(factory.convert(cell.getValue().getValue())); } else { e.getWidget().setValue(""); } }; }  static Consumer<E> makeOnCreationCallback(final F factory,
                                                                                                                                                                             final GridCell<T> cell); static Consumer<E> makeOnDisplayTextBoxCallback(); static Consumer<E> makeOnCreationCallback(final F factory,
                                                                                                                                                                           final GridCell<T> cell,
                                                                                                                                                                           final Map<String, String> enumLookups); static Consumer<E> makeOnDisplayListBoxCallback(); static Consumer<E> makeOnCreationCallback(final GridCell<Date> cell); static Consumer<E> makeOnDisplayDatePickerCallback();  }