@Test public void testDisableFilterInputs() { final JQuerySelectPicker selectPicker = mock(JQuerySelectPicker.class); doReturn(selectPicker).when(view).getDrgElementFilter(); termFilter.value = "something"; view.disableFilterInputs(); assertEquals("", termFilter.value); assertTrue(termFilter.disabled); assertTrue(drgElementFilter.disabled); verify(selectPicker).selectpicker("val", ""); verify(selectPicker).selectpicker("refresh"); }
@Override public void disableFilterInputs() { termFilter.value = ""; getDrgElementFilter().selectpicker("val", ""); disableFilterInputs(true); }
DecisionComponentsView implements DecisionComponents.View { @Override public void disableFilterInputs() { termFilter.value = ""; getDrgElementFilter().selectpicker("val", ""); disableFilterInputs(true); } }
DecisionComponentsView implements DecisionComponents.View { @Override public void disableFilterInputs() { termFilter.value = ""; getDrgElementFilter().selectpicker("val", ""); disableFilterInputs(true); } @Inject  DecisionComponentsView(final HTMLSelectElement drgElementFilter,
                                  final HTMLInputElement termFilter,
                                  final HTMLDivElement list,
                                  final HTMLDivElement emptyState,
                                  final HTMLDivElement loading,
                                  final HTMLDivElement componentsCounter,
                                  final TranslationService translationService); }
DecisionComponentsView implements DecisionComponents.View { @Override public void disableFilterInputs() { termFilter.value = ""; getDrgElementFilter().selectpicker("val", ""); disableFilterInputs(true); } @Inject  DecisionComponentsView(final HTMLSelectElement drgElementFilter,
                                  final HTMLInputElement termFilter,
                                  final HTMLDivElement list,
                                  final HTMLDivElement emptyState,
                                  final HTMLDivElement loading,
                                  final HTMLDivElement componentsCounter,
                                  final TranslationService translationService); @PostConstruct void init(); @Override void init(final DecisionComponents presenter); @EventHandler("term-filter") void onTermFilterChange(final KeyUpEvent e); @Override void clear(); @Override void addListItem(final HTMLElement htmlElement); @Override void showEmptyState(); @Override void showLoading(); @Override void hideLoading(); @Override void disableFilterInputs(); @Override void enableFilterInputs(); @Override void setComponentsCounter(final Integer count); }
DecisionComponentsView implements DecisionComponents.View { @Override public void disableFilterInputs() { termFilter.value = ""; getDrgElementFilter().selectpicker("val", ""); disableFilterInputs(true); } @Inject  DecisionComponentsView(final HTMLSelectElement drgElementFilter,
                                  final HTMLInputElement termFilter,
                                  final HTMLDivElement list,
                                  final HTMLDivElement emptyState,
                                  final HTMLDivElement loading,
                                  final HTMLDivElement componentsCounter,
                                  final TranslationService translationService); @PostConstruct void init(); @Override void init(final DecisionComponents presenter); @EventHandler("term-filter") void onTermFilterChange(final KeyUpEvent e); @Override void clear(); @Override void addListItem(final HTMLElement htmlElement); @Override void showEmptyState(); @Override void showLoading(); @Override void hideLoading(); @Override void disableFilterInputs(); @Override void enableFilterInputs(); @Override void setComponentsCounter(final Integer count);  }