@Test public void setSetOnValueChanged() { final Consumer consumer = mock(Consumer.class); view.setOnValueChanged(consumer); verify(dateSelector).setOnInputChangeCallback(consumer); verify(timeSelector).setOnInputChangeCallback(consumer); }
@Override public void setOnValueChanged(final Consumer<Event> onValueChanged) { dateSelector.setOnInputChangeCallback(onValueChanged); timeSelector.setOnInputChangeCallback(onValueChanged); }
DateTimeSelectorView implements DateTimeSelector.View { @Override public void setOnValueChanged(final Consumer<Event> onValueChanged) { dateSelector.setOnInputChangeCallback(onValueChanged); timeSelector.setOnInputChangeCallback(onValueChanged); } }
DateTimeSelectorView implements DateTimeSelector.View { @Override public void setOnValueChanged(final Consumer<Event> onValueChanged) { dateSelector.setOnInputChangeCallback(onValueChanged); timeSelector.setOnInputChangeCallback(onValueChanged); } @Inject  DateTimeSelectorView(final HTMLDivElement dateSelectorContainer,
                                final HTMLDivElement timeSelectorContainer,
                                final DateSelector dateSelector,
                                final TimeSelector timeSelector,
                                final ConstraintPlaceholderHelper placeholderHelper); }
DateTimeSelectorView implements DateTimeSelector.View { @Override public void setOnValueChanged(final Consumer<Event> onValueChanged) { dateSelector.setOnInputChangeCallback(onValueChanged); timeSelector.setOnInputChangeCallback(onValueChanged); } @Inject  DateTimeSelectorView(final HTMLDivElement dateSelectorContainer,
                                final HTMLDivElement timeSelectorContainer,
                                final DateSelector dateSelector,
                                final TimeSelector timeSelector,
                                final ConstraintPlaceholderHelper placeholderHelper); @Override DateTimeValue getValue(); @Override void setValue(final DateTimeValue value); @Override void setOnValueChanged(final Consumer<Event> onValueChanged); @Override void setOnValueInputBlur(final Consumer<BlurEvent> blurEvent); @Override void select(); @Override void init(final DateTimeSelector presenter); }
DateTimeSelectorView implements DateTimeSelector.View { @Override public void setOnValueChanged(final Consumer<Event> onValueChanged) { dateSelector.setOnInputChangeCallback(onValueChanged); timeSelector.setOnInputChangeCallback(onValueChanged); } @Inject  DateTimeSelectorView(final HTMLDivElement dateSelectorContainer,
                                final HTMLDivElement timeSelectorContainer,
                                final DateSelector dateSelector,
                                final TimeSelector timeSelector,
                                final ConstraintPlaceholderHelper placeholderHelper); @Override DateTimeValue getValue(); @Override void setValue(final DateTimeValue value); @Override void setOnValueChanged(final Consumer<Event> onValueChanged); @Override void setOnValueInputBlur(final Consumer<BlurEvent> blurEvent); @Override void select(); @Override void init(final DateTimeSelector presenter);  }