@Test public void testSetCurrentResultNumber() { currentResult.textContent = "something..."; view.setCurrentResultNumber(42); assertEquals("42", currentResult.textContent); }
@Override public void setCurrentResultNumber(final Integer currentResultNumber) { currentResult.textContent = currentResultNumber.toString(); }
SearchBarComponentView implements SearchBarComponent.View { @Override public void setCurrentResultNumber(final Integer currentResultNumber) { currentResult.textContent = currentResultNumber.toString(); } }
SearchBarComponentView implements SearchBarComponent.View { @Override public void setCurrentResultNumber(final Integer currentResultNumber) { currentResult.textContent = currentResultNumber.toString(); } @Inject  SearchBarComponentView(final HTMLButtonElement searchButton,
                                  final HTMLButtonElement searchContainer,
                                  final HTMLButtonElement prevElement,
                                  final HTMLButtonElement nextElement,
                                  final HTMLButtonElement closeSearch,
                                  final HTMLInputElement inputElement,
                                  final TranslationService translationService,
                                  final @Named("span") HTMLElement currentResult,
                                  final @Named("span") HTMLElement totalOfResults); }
SearchBarComponentView implements SearchBarComponent.View { @Override public void setCurrentResultNumber(final Integer currentResultNumber) { currentResult.textContent = currentResultNumber.toString(); } @Inject  SearchBarComponentView(final HTMLButtonElement searchButton,
                                  final HTMLButtonElement searchContainer,
                                  final HTMLButtonElement prevElement,
                                  final HTMLButtonElement nextElement,
                                  final HTMLButtonElement closeSearch,
                                  final HTMLInputElement inputElement,
                                  final TranslationService translationService,
                                  final @Named("span") HTMLElement currentResult,
                                  final @Named("span") HTMLElement totalOfResults); @Override void init(final SearchBarComponent searchBarComponent); @EventHandler("search-button") void onSearchButtonClick(final ClickEvent clickEvent); @EventHandler("next-element") void onNextElementClick(final ClickEvent clickEvent); @EventHandler("prev-element") void onPrevElementClick(final ClickEvent clickEvent); @EventHandler("close-search") void onCloseSearchClick(final ClickEvent clickEvent); @EventHandler("search-input") void onSearchInputKeyPress(final KeyUpEvent keyEvent); @Override void setCurrentResultNumber(final Integer currentResultNumber); @Override void setTotalOfResultsNumber(final Integer totalOfResultsNumber); @Override void disableSearch(); }
SearchBarComponentView implements SearchBarComponent.View { @Override public void setCurrentResultNumber(final Integer currentResultNumber) { currentResult.textContent = currentResultNumber.toString(); } @Inject  SearchBarComponentView(final HTMLButtonElement searchButton,
                                  final HTMLButtonElement searchContainer,
                                  final HTMLButtonElement prevElement,
                                  final HTMLButtonElement nextElement,
                                  final HTMLButtonElement closeSearch,
                                  final HTMLInputElement inputElement,
                                  final TranslationService translationService,
                                  final @Named("span") HTMLElement currentResult,
                                  final @Named("span") HTMLElement totalOfResults); @Override void init(final SearchBarComponent searchBarComponent); @EventHandler("search-button") void onSearchButtonClick(final ClickEvent clickEvent); @EventHandler("next-element") void onNextElementClick(final ClickEvent clickEvent); @EventHandler("prev-element") void onPrevElementClick(final ClickEvent clickEvent); @EventHandler("close-search") void onCloseSearchClick(final ClickEvent clickEvent); @EventHandler("search-input") void onSearchInputKeyPress(final KeyUpEvent keyEvent); @Override void setCurrentResultNumber(final Integer currentResultNumber); @Override void setTotalOfResultsNumber(final Integer totalOfResultsNumber); @Override void disableSearch();  }