@Override public void setSearchHint(String text) { searchInput.setAttribute("placeholder", text); }
@Override public void setSearchHint(String text) { searchInput.setAttribute("placeholder", text); }
@Override public void init(final PopulatedLibraryScreen presenter) { this.presenter = presenter; filterText.setAttribute("placeholder", ts.getTranslation(LibraryConstants.Search)); }
@Override public void init(final ImportPresenter presenter) { this.presenter = presenter; filterText.setAttribute("placeholder", ts.getTranslation(LibraryConstants.Search)); }
@PostConstruct public void initPopovers() { header.setAttribute("type", "textbox"); header.setAttribute("data-toggle", "popover"); header.setAttribute("class", "form-control"); hideColumn.setAttribute("type", "checkbox"); hideColumn.setAttribute("data-toggle", "popover"); hideColumn.setAttribute("class", "form-control"); logicallyInsert.setAttribute("type", "checkbox"); logicallyInsert.setAttribute("data-toggle", "popover"); logicallyInsert.setAttribute("class", "form-control"); updateEngineWithChanges.setAttribute("type", "checkbox"); updateEngineWithChanges.setAttribute("data-toggle", "popover"); updateEngineWithChanges.setAttribute("class", "form-control");
@PostConstruct public void initPopovers() { header.setAttribute("type", "textbox"); header.setAttribute("data-toggle", "popover"); header.setAttribute("class", "form-control"); hideColumn.setAttribute("type", "checkbox"); hideColumn.setAttribute("data-toggle", "popover"); hideColumn.setAttribute("class", "form-control"); logicallyInsert.setAttribute("type", "checkbox"); logicallyInsert.setAttribute("data-toggle", "popover"); logicallyInsert.setAttribute("class", "form-control"); updateEngineWithChanges.setAttribute("type", "checkbox"); updateEngineWithChanges.setAttribute("data-toggle", "popover"); updateEngineWithChanges.setAttribute("class", "form-control");
@Override public void init(final ContributorsListPresenter presenter) { this.presenter = presenter; filterText.setAttribute("placeholder", ts.getTranslation(LibraryConstants.Search)); addContributor.setHidden(!presenter.canEditContributors(ContributorType.CONTRIBUTOR)); }
@Test public void testInitPopovers() throws Exception { view.initPopovers(); verify(input, times(1)).setAttribute("type", "textbox"); verify(input, times(4)).setAttribute("class", "form-control"); verify(input, times(3)).setAttribute("type", "checkbox"); verify(input, times(4)).setAttribute("data-toggle", "popover"); verify(popoverUtils).setupAndRegisterPopover(eq(input), eq(HEADER_TRANSLATION)); verify(popoverUtils).setupAndRegisterPopover(eq(input), eq(HIDE_TRANSLATION)); verify(popoverUtils).setupAndRegisterPopover(eq(input), eq(UPDATE_ENGINE_TRANSLATION)); verify(popoverUtils).setupAndRegisterPopover(eq(input), eq(LOGICALLY_INSERT_TRANSLATION)); }
@Override public void addNumericFilter(final String label, final String placeholder, final Consumer<ActiveFilterItem<Integer>> callback) { createFilterOption(label); createNumberInput(label, placeholder, refineSelect.getOptions().getLength() > 1, input -> { input.setType("number"); input.setAttribute("min", "0"); }, v -> Integer.valueOf(v), callback); }
final Consumer<ActiveFilterItem<T>> callback) { customizeCallback.accept(input); input.setAttribute("placeholder", placeholder); input.setAttribute("data-filter", label); addCSSClass(input,
input.setType("checkbox"); input.setValue(entry.getKey()); input.setAttribute("data-label", entry.getValue()); input.addEventListener("change",