@Test public void testSetPlaceHolder() { final String value = "placeholderValue"; view.setPlaceHolder(value); verify(yearInput).setAttribute("placeholder", value); verify(monthInput).setAttribute("placeholder", value); }
@Override public void setPlaceHolder(final String placeholder) { final String attribute = "placeholder"; yearInput.setAttribute(attribute, placeholder); monthInput.setAttribute(attribute, placeholder); }
YearsMonthsSelectorView implements YearsMonthsSelector.View { @Override public void setPlaceHolder(final String placeholder) { final String attribute = "placeholder"; yearInput.setAttribute(attribute, placeholder); monthInput.setAttribute(attribute, placeholder); } }
YearsMonthsSelectorView implements YearsMonthsSelector.View { @Override public void setPlaceHolder(final String placeholder) { final String attribute = "placeholder"; yearInput.setAttribute(attribute, placeholder); monthInput.setAttribute(attribute, placeholder); } @Inject  YearsMonthsSelectorView(final HTMLInputElement yearInput,
                                   final HTMLInputElement monthInput); }
YearsMonthsSelectorView implements YearsMonthsSelector.View { @Override public void setPlaceHolder(final String placeholder) { final String attribute = "placeholder"; yearInput.setAttribute(attribute, placeholder); monthInput.setAttribute(attribute, placeholder); } @Inject  YearsMonthsSelectorView(final HTMLInputElement yearInput,
                                   final HTMLInputElement monthInput); @Override void init(final YearsMonthsSelectorView presenter); @Override YearsMonthsValue getValue(); @Override void setValue(final YearsMonthsValue value); @Override void setPlaceHolder(final String placeholder); @EventHandler("years-input") void onYearsInputBlur(final BlurEvent blurEvent); @EventHandler("months-input") void onMonthsInputBlur(final BlurEvent blurEvent); @Override void onValueChanged(final Consumer<Event> onValueChanged); @Override void onValueInputBlur(final Consumer<BlurEvent> blurEvent); @Override void select(); }
YearsMonthsSelectorView implements YearsMonthsSelector.View { @Override public void setPlaceHolder(final String placeholder) { final String attribute = "placeholder"; yearInput.setAttribute(attribute, placeholder); monthInput.setAttribute(attribute, placeholder); } @Inject  YearsMonthsSelectorView(final HTMLInputElement yearInput,
                                   final HTMLInputElement monthInput); @Override void init(final YearsMonthsSelectorView presenter); @Override YearsMonthsValue getValue(); @Override void setValue(final YearsMonthsValue value); @Override void setPlaceHolder(final String placeholder); @EventHandler("years-input") void onYearsInputBlur(final BlurEvent blurEvent); @EventHandler("months-input") void onMonthsInputBlur(final BlurEvent blurEvent); @Override void onValueChanged(final Consumer<Event> onValueChanged); @Override void onValueInputBlur(final Consumer<BlurEvent> blurEvent); @Override void select();  }