@Test public void testInit() { view.init(); verify(timeDuration).setAttribute(PLACEHOLDER_ATTR, TimeDuration_Placeholder); verify(timeCycle).setAttribute(PLACEHOLDER_ATTR, TimeCycle_Placeholder); verify(timeDate).setAttribute(PLACEHOLDER_ATTR, TimeDate_Placeholder); String expectedDurationHelp = DurationTimer_Help_Header + ":" + "<UL>" + "<LI>" + DurationTimer_Help_Line_1 + "</LI>" + "<LI>" + Expression_Help_Line + "</LI>" + "</UL>"; verify(durationTimerHelp).setAttribute(DATA_CONTENT_ATTR, expectedDurationHelp); String expectedMultipleTimerHelp = MultipleTimer_Help_Header + ":" + "<UL>" + "<LI>" + MultipleTimer_Help_Line1 + "</LI>" + "<LI>" + MultipleTimer_Help_Line2 + "</LI>" + "<LI>" + MultipleTimer_Help_Line3 + "</LI>" + "<LI>" + Expression_Help_Line + "</LI>" + "</UL>"; verify(multipleTimerHelp).setAttribute(DATA_CONTENT_ATTR, expectedMultipleTimerHelp); String expectedDateTimerHelp = DateTimer_Help_Header + ":" + "<UL>" + "<LI>" + DateTimer_Help_Line1 + "</LI>" + "<LI>" + Expression_Help_Line + "</LI>" + "</UL>"; verify(dateTimerHelp).setAttribute(DATA_CONTENT_ATTR, expectedDateTimerHelp); verify(timeDateTimePicker).setPlaceholder(TimeDateTimePicker_Placeholder); verify(timeDateTimePicker).setAutoClose(true); verify(timeDateTimePicker).setHighlightToday(true); verify(timeDateTimePicker).setShowTodayButton(true); verify(timeDateTimePicker).setForceParse(false); verify(timeDateTimePicker).addValueChangeHandler(anyObject()); verify(timeDateTimePicker).addHideHandler(anyObject()); verify(timeDateTimePicker).setPosition(DateTimePickerPosition.BOTTOM_RIGHT); verify(timeDateTimePicker).reload(); }
@Override public void init(TimerSettingsFieldEditorPresenter presenter) { this.presenter = presenter; }
TimerSettingsFieldEditorView implements IsElement,
                   TimerSettingsFieldEditorPresenter.View { @Override public void init(TimerSettingsFieldEditorPresenter presenter) { this.presenter = presenter; } }
TimerSettingsFieldEditorView implements IsElement,
                   TimerSettingsFieldEditorPresenter.View { @Override public void init(TimerSettingsFieldEditorPresenter presenter) { this.presenter = presenter; }  }
TimerSettingsFieldEditorView implements IsElement,
                   TimerSettingsFieldEditorPresenter.View { @Override public void init(TimerSettingsFieldEditorPresenter presenter) { this.presenter = presenter; }  @Override void init(TimerSettingsFieldEditorPresenter presenter); @PostConstruct void init(); @Override void setTimeDuration(String timeDuration); @Override String getTimeDuration(); @Override void setTimeDate(String timeDate); @Override String getTimeDate(); @Override Date getTimeDateTimePickerValue(); @Override void setTimeCycle(String timeCycle); @Override String getTimeCycle(); @Override void setTimeCycleLanguage(String timeCycleLanguage); @Override String getTimeCycleLanguage(); @Override void setTimeCycleLanguageOptions(List<Pair<String, String>> options,
                                            String selectedValue); @Override void setMultipleTimerChecked(boolean value); @Override void setDurationTimerChecked(boolean value); @Override void setDateTimerChecked(boolean value); @Override void showMultipleTimerParams(boolean show); @Override void showDurationTimerParams(boolean show); @Override void showDateTimerParams(boolean show); @Override void showTimeDate(boolean show); @Override void showTimeDateTimePicker(boolean show); @Override void setTimeDateTimePickerValue(String value); @Override void setTimeDateTimePickerValue(Date value); @Override void clear(); @Override Date parseFromISO(final String value); @Override String formatToISO(final Date value); @Override void setReadOnly(final boolean readOnly); }
TimerSettingsFieldEditorView implements IsElement,
                   TimerSettingsFieldEditorPresenter.View { @Override public void init(TimerSettingsFieldEditorPresenter presenter) { this.presenter = presenter; }  @Override void init(TimerSettingsFieldEditorPresenter presenter); @PostConstruct void init(); @Override void setTimeDuration(String timeDuration); @Override String getTimeDuration(); @Override void setTimeDate(String timeDate); @Override String getTimeDate(); @Override Date getTimeDateTimePickerValue(); @Override void setTimeCycle(String timeCycle); @Override String getTimeCycle(); @Override void setTimeCycleLanguage(String timeCycleLanguage); @Override String getTimeCycleLanguage(); @Override void setTimeCycleLanguageOptions(List<Pair<String, String>> options,
                                            String selectedValue); @Override void setMultipleTimerChecked(boolean value); @Override void setDurationTimerChecked(boolean value); @Override void setDateTimerChecked(boolean value); @Override void showMultipleTimerParams(boolean show); @Override void showDurationTimerParams(boolean show); @Override void showDateTimerParams(boolean show); @Override void showTimeDate(boolean show); @Override void showTimeDateTimePicker(boolean show); @Override void setTimeDateTimePickerValue(String value); @Override void setTimeDateTimePickerValue(Date value); @Override void clear(); @Override Date parseFromISO(final String value); @Override String formatToISO(final Date value); @Override void setReadOnly(final boolean readOnly);  }