@Test public void testSetValue() { final String dateValue = "dateValue"; final String timeValue = "timeValue"; final DateTimeValue dateTimeValue = new DateTimeValue(); dateTimeValue.setDate(dateValue); dateTimeValue.setTime(timeValue); view.setValue(dateTimeValue); verify(dateSelector).setValue(dateValue); verify(timeSelector).setValue(timeValue); }
@Override public void setValue(final DateTimeValue value) { dateSelector.setValue(value.getDate()); timeSelector.setValue(value.getTime()); }
DateTimeSelectorView implements DateTimeSelector.View { @Override public void setValue(final DateTimeValue value) { dateSelector.setValue(value.getDate()); timeSelector.setValue(value.getTime()); } }
DateTimeSelectorView implements DateTimeSelector.View { @Override public void setValue(final DateTimeValue value) { dateSelector.setValue(value.getDate()); timeSelector.setValue(value.getTime()); } @Inject  DateTimeSelectorView(final HTMLDivElement dateSelectorContainer,
                                final HTMLDivElement timeSelectorContainer,
                                final DateSelector dateSelector,
                                final TimeSelector timeSelector,
                                final ConstraintPlaceholderHelper placeholderHelper); }
DateTimeSelectorView implements DateTimeSelector.View { @Override public void setValue(final DateTimeValue value) { dateSelector.setValue(value.getDate()); timeSelector.setValue(value.getTime()); } @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 setValue(final DateTimeValue value) { dateSelector.setValue(value.getDate()); timeSelector.setValue(value.getTime()); } @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);  }