@Test public void testRefreshTimeZoneOffsetMode() { final String tzValue = "timezone-value"; final TimeValue timeValue = mock(TimeValue.class); when(timeValue.getTimeZoneValue()).thenReturn(tzValue); doNothing().when(view).refreshToggleTimeZoneIcon(); doNothing().when(view).reloadTimeZoneSelector(); view.refreshTimeZoneOffsetMode(timeValue); verify(view).refreshToggleTimeZoneIcon(); verify(view).reloadTimeZoneSelector(); verify(view).setPickerValue(tzValue); }
void refreshTimeZoneOffsetMode(final TimeValue timeValue) { refreshToggleTimeZoneIcon(); reloadTimeZoneSelector(); setPickerValue(timeValue.getTimeZoneValue()); }
TimeSelectorView implements TimeSelector.View { void refreshTimeZoneOffsetMode(final TimeValue timeValue) { refreshToggleTimeZoneIcon(); reloadTimeZoneSelector(); setPickerValue(timeValue.getTimeZoneValue()); } }
TimeSelectorView implements TimeSelector.View { void refreshTimeZoneOffsetMode(final TimeValue timeValue) { refreshToggleTimeZoneIcon(); reloadTimeZoneSelector(); setPickerValue(timeValue.getTimeZoneValue()); } @Inject  TimeSelectorView(final HTMLInputElement timeInput,
                            final TimePicker picker,
                            final TimeZoneProvider timeZoneProvider,
                            final TimeValueFormatter formatter,
                            final @Named("i") HTMLElement toggleTimeZoneIcon,
                            final HTMLButtonElement toggleTimeZoneButton,
                            final ClientTranslationService translationService,
                            final HTMLSelectElement timeZoneSelector,
                            final HTMLOptionElement typeSelectOption); }
TimeSelectorView implements TimeSelector.View { void refreshTimeZoneOffsetMode(final TimeValue timeValue) { refreshToggleTimeZoneIcon(); reloadTimeZoneSelector(); setPickerValue(timeValue.getTimeZoneValue()); } @Inject  TimeSelectorView(final HTMLInputElement timeInput,
                            final TimePicker picker,
                            final TimeZoneProvider timeZoneProvider,
                            final TimeValueFormatter formatter,
                            final @Named("i") HTMLElement toggleTimeZoneIcon,
                            final HTMLButtonElement toggleTimeZoneButton,
                            final ClientTranslationService translationService,
                            final HTMLSelectElement timeZoneSelector,
                            final HTMLOptionElement typeSelectOption); void onSelectChange(final JQuerySelectPickerEvent event); @Override String getValue(); @Override void setValue(final String value); @Override void setPlaceholder(final String placeholder); @Override void setOnInputChangeCallback(final Consumer<Event> onValueChanged); @Override void select(); @Override void setOnInputBlurCallback(final Consumer<BlurEvent> onValueInputBlur); @EventHandler("time-input") void onTimeInputBlur(final BlurEvent blurEvent); @EventHandler("toggle-timezone-button") void onToggleTimeZoneButtonClick(final ClickEvent clickEvent); @Override boolean isChildOfView(final Object element); @Override void init(final TimeSelectorView presenter); }
TimeSelectorView implements TimeSelector.View { void refreshTimeZoneOffsetMode(final TimeValue timeValue) { refreshToggleTimeZoneIcon(); reloadTimeZoneSelector(); setPickerValue(timeValue.getTimeZoneValue()); } @Inject  TimeSelectorView(final HTMLInputElement timeInput,
                            final TimePicker picker,
                            final TimeZoneProvider timeZoneProvider,
                            final TimeValueFormatter formatter,
                            final @Named("i") HTMLElement toggleTimeZoneIcon,
                            final HTMLButtonElement toggleTimeZoneButton,
                            final ClientTranslationService translationService,
                            final HTMLSelectElement timeZoneSelector,
                            final HTMLOptionElement typeSelectOption); void onSelectChange(final JQuerySelectPickerEvent event); @Override String getValue(); @Override void setValue(final String value); @Override void setPlaceholder(final String placeholder); @Override void setOnInputChangeCallback(final Consumer<Event> onValueChanged); @Override void select(); @Override void setOnInputBlurCallback(final Consumer<BlurEvent> onValueInputBlur); @EventHandler("time-input") void onTimeInputBlur(final BlurEvent blurEvent); @EventHandler("toggle-timezone-button") void onToggleTimeZoneButtonClick(final ClickEvent clickEvent); @Override boolean isChildOfView(final Object element); @Override void init(final TimeSelectorView presenter);  }