@Test public void testShowReadOnlyMessageWhenShowIsFalse() { readOnlyMessage.classList = mock(DOMTokenList.class); view.showReadOnlyMessage(false); verify(readOnlyMessage.classList).add(HIDDEN_CSS_CLASS); }
@Override public void showReadOnlyMessage(final boolean show) { if (show) { show(readOnlyMessage); } else { hide(readOnlyMessage); } }
DataTypeListView implements DataTypeList.View { @Override public void showReadOnlyMessage(final boolean show) { if (show) { show(readOnlyMessage); } else { hide(readOnlyMessage); } } }
DataTypeListView implements DataTypeList.View { @Override public void showReadOnlyMessage(final boolean show) { if (show) { show(readOnlyMessage); } else { hide(readOnlyMessage); } } @Inject  DataTypeListView(final HTMLDivElement listItems,
                            final HTMLButtonElement addButton,
                            final HTMLButtonElement addButtonPlaceholder,
                            final HTMLDivElement dataTypeButton,
                            final HTMLDivElement placeholder,
                            final HTMLDivElement searchBarContainer,
                            final HTMLAnchorElement expandAll,
                            final HTMLAnchorElement collapseAll,
                            final HTMLDivElement noDataTypesFound,
                            final HTMLDivElement readOnlyMessage,
                            final HTMLButtonElement readOnlyMessageCloseButton,
                            final ScrollHelper scrollHelper,
                            final HTMLButtonElement importDataObjectButton,
                            final ImportDataObjectModal importDataObjectModal,
                            final Event<FlashMessage> flashMessageEvent,
                            final TranslationService translationService,
                            final @DMNEditor ReadOnlyProvider readOnlyProvider); }
DataTypeListView implements DataTypeList.View { @Override public void showReadOnlyMessage(final boolean show) { if (show) { show(readOnlyMessage); } else { hide(readOnlyMessage); } } @Inject  DataTypeListView(final HTMLDivElement listItems,
                            final HTMLButtonElement addButton,
                            final HTMLButtonElement addButtonPlaceholder,
                            final HTMLDivElement dataTypeButton,
                            final HTMLDivElement placeholder,
                            final HTMLDivElement searchBarContainer,
                            final HTMLAnchorElement expandAll,
                            final HTMLAnchorElement collapseAll,
                            final HTMLDivElement noDataTypesFound,
                            final HTMLDivElement readOnlyMessage,
                            final HTMLButtonElement readOnlyMessageCloseButton,
                            final ScrollHelper scrollHelper,
                            final HTMLButtonElement importDataObjectButton,
                            final ImportDataObjectModal importDataObjectModal,
                            final Event<FlashMessage> flashMessageEvent,
                            final TranslationService translationService,
                            final @DMNEditor ReadOnlyProvider readOnlyProvider); @Override void init(final DataTypeList presenter); @Override void showOrHideNoCustomItemsMessage(); @Override void addSubItems(final DataType dataType,
                            final List<DataTypeListItem> listItems); @EventHandler("expand-all") void expandAll(final ClickEvent e); @EventHandler("collapse-all") void collapseAll(final ClickEvent e); @EventHandler({"add-button", "add-button-placeholder"}) void onAddButtonClick(final ClickEvent e); @SuppressWarnings("unused") @EventHandler("import-data-object-button") void onImportDataObjectClick(final ClickEvent e); @EventHandler("read-only-message-close-button") void onReadOnlyMessageCloseButtonClick(final ClickEvent e); @Override void removeItem(final DataType dataType); @Override void cleanSubTypes(final DataType dataType); @Override void insertBelow(final DataTypeListItem listItem,
                            final DataType reference); @Override void insertAbove(final DataTypeListItem listItem,
                            final DataType reference); @Override void showNoDataTypesFound(); @Override void showReadOnlyMessage(final boolean show); @Override HTMLDivElement getListItems(); @Override void showImportDataObjectButton(); @Override void hideImportDataObjectButton(); }
DataTypeListView implements DataTypeList.View { @Override public void showReadOnlyMessage(final boolean show) { if (show) { show(readOnlyMessage); } else { hide(readOnlyMessage); } } @Inject  DataTypeListView(final HTMLDivElement listItems,
                            final HTMLButtonElement addButton,
                            final HTMLButtonElement addButtonPlaceholder,
                            final HTMLDivElement dataTypeButton,
                            final HTMLDivElement placeholder,
                            final HTMLDivElement searchBarContainer,
                            final HTMLAnchorElement expandAll,
                            final HTMLAnchorElement collapseAll,
                            final HTMLDivElement noDataTypesFound,
                            final HTMLDivElement readOnlyMessage,
                            final HTMLButtonElement readOnlyMessageCloseButton,
                            final ScrollHelper scrollHelper,
                            final HTMLButtonElement importDataObjectButton,
                            final ImportDataObjectModal importDataObjectModal,
                            final Event<FlashMessage> flashMessageEvent,
                            final TranslationService translationService,
                            final @DMNEditor ReadOnlyProvider readOnlyProvider); @Override void init(final DataTypeList presenter); @Override void showOrHideNoCustomItemsMessage(); @Override void addSubItems(final DataType dataType,
                            final List<DataTypeListItem> listItems); @EventHandler("expand-all") void expandAll(final ClickEvent e); @EventHandler("collapse-all") void collapseAll(final ClickEvent e); @EventHandler({"add-button", "add-button-placeholder"}) void onAddButtonClick(final ClickEvent e); @SuppressWarnings("unused") @EventHandler("import-data-object-button") void onImportDataObjectClick(final ClickEvent e); @EventHandler("read-only-message-close-button") void onReadOnlyMessageCloseButtonClick(final ClickEvent e); @Override void removeItem(final DataType dataType); @Override void cleanSubTypes(final DataType dataType); @Override void insertBelow(final DataTypeListItem listItem,
                            final DataType reference); @Override void insertAbove(final DataTypeListItem listItem,
                            final DataType reference); @Override void showNoDataTypesFound(); @Override void showReadOnlyMessage(final boolean show); @Override HTMLDivElement getListItems(); @Override void showImportDataObjectButton(); @Override void hideImportDataObjectButton();  }