@Test public void testDisableEditMode() { final String type = "type"; final String expectedTypeText = "(type)"; final DataType dataType = makeDataType(type); doNothing().when(view).hideSelectPicker(); when(presenter.getDataType()).thenReturn(dataType); typeText.classList = mock(DOMTokenList.class); view.disableEditMode(); assertEquals(expectedTypeText, typeText.textContent); verify(typeText.classList).remove(HIDDEN_CSS_CLASS); verify(view).hideSelectPicker(); }
@Override public void disableEditMode() { typeText.textContent = "(" + presenter.getDataType().getType() + ")"; hideSelectPicker(); show(typeText); }
DataTypeSelectView implements DataTypeSelect.View { @Override public void disableEditMode() { typeText.textContent = "(" + presenter.getDataType().getType() + ")"; hideSelectPicker(); show(typeText); } }
DataTypeSelectView implements DataTypeSelect.View { @Override public void disableEditMode() { typeText.textContent = "(" + presenter.getDataType().getType() + ")"; hideSelectPicker(); show(typeText); } @Inject  DataTypeSelectView(final HTMLDivElement typeText,
                              final HTMLSelectElement typeSelect,
                              final HTMLOptGroupElement typeSelectOptGroup,
                              final HTMLOptionElement typeSelectOption,
                              final HTMLOptGroupElement typeSelectStructureOptGroup,
                              final TranslationService translationService); }
DataTypeSelectView implements DataTypeSelect.View { @Override public void disableEditMode() { typeText.textContent = "(" + presenter.getDataType().getType() + ")"; hideSelectPicker(); show(typeText); } @Inject  DataTypeSelectView(final HTMLDivElement typeText,
                              final HTMLSelectElement typeSelect,
                              final HTMLOptGroupElement typeSelectOptGroup,
                              final HTMLOptionElement typeSelectOption,
                              final HTMLOptGroupElement typeSelectStructureOptGroup,
                              final TranslationService translationService); @Override void init(final DataTypeSelect presenter); @Override void setupDropdown(); @Override void enableEditMode(); @Override void disableEditMode(); @Override void setDataType(final DataType dataType); void onSelectChange(final JQuerySelectPickerEvent event); @Override String getValue(); }
DataTypeSelectView implements DataTypeSelect.View { @Override public void disableEditMode() { typeText.textContent = "(" + presenter.getDataType().getType() + ")"; hideSelectPicker(); show(typeText); } @Inject  DataTypeSelectView(final HTMLDivElement typeText,
                              final HTMLSelectElement typeSelect,
                              final HTMLOptGroupElement typeSelectOptGroup,
                              final HTMLOptionElement typeSelectOption,
                              final HTMLOptGroupElement typeSelectStructureOptGroup,
                              final TranslationService translationService); @Override void init(final DataTypeSelect presenter); @Override void setupDropdown(); @Override void enableEditMode(); @Override void disableEditMode(); @Override void setDataType(final DataType dataType); void onSelectChange(final JQuerySelectPickerEvent event); @Override String getValue();  }