@Test public void testShowLabels() { final Element element1 = mock(Element.class); final Element element2 = mock(Element.class); final NodeList<Element> labels = spy(new NodeList<>()); element1.classList = mock(DOMTokenList.class); element2.classList = mock(DOMTokenList.class); labels.length = 2; doReturn(element1).when(labels).getAt(0); doReturn(element2).when(labels).getAt(1); doReturn(labels).when(view).getLabels(); view.showLabels(); verify(element1.classList).remove(HIDDEN_CSS_CLASS); verify(element2.classList).remove(HIDDEN_CSS_CLASS); }
void showLabels() { final NodeList<Element> labels = getLabels(); for (int i = 0; i < labels.length; i++) { show(labels.getAt(i)); } }
DataTypeListItemView implements DataTypeListItem.View { void showLabels() { final NodeList<Element> labels = getLabels(); for (int i = 0; i < labels.length; i++) { show(labels.getAt(i)); } } }
DataTypeListItemView implements DataTypeListItem.View { void showLabels() { final NodeList<Element> labels = getLabels(); for (int i = 0; i < labels.length; i++) { show(labels.getAt(i)); } } @Inject  DataTypeListItemView(final HTMLDivElement view,
                                final TranslationService translationService,
                                final @DMNEditor ReadOnlyProvider readOnlyProvider); }
DataTypeListItemView implements DataTypeListItem.View { void showLabels() { final NodeList<Element> labels = getLabels(); for (int i = 0; i < labels.length; i++) { show(labels.getAt(i)); } } @Inject  DataTypeListItemView(final HTMLDivElement view,
                                final TranslationService translationService,
                                final @DMNEditor ReadOnlyProvider readOnlyProvider); @Override void init(final DataTypeListItem presenter); @Override HTMLElement getElement(); @Override void toggleArrow(final boolean show); @Override void expand(); @Override void collapse(); @Override void showEditButton(); @Override void showSaveButton(); @Override void enableFocusMode(); @Override void disableFocusMode(); @Override boolean isOnFocusMode(); @Override String getName(); @Override void setName(final String name); @Override void showDataTypeNameInput(); @Override void hideDataTypeNameInput(); @Override void setupSelectComponent(final DataTypeSelect typeSelect); @Override void setupConstraintComponent(final DataTypeConstraint dataTypeConstraintComponent); @Override void setupListComponent(final SmallSwitchComponent dataTypeListComponent); @Override void showListContainer(); @Override void hideListContainer(); @Override void showListYesLabel(); @Override void hideListYesLabel(); @Override boolean isCollapsed(); @Override void setDataType(final DataType dataType); }
DataTypeListItemView implements DataTypeListItem.View { void showLabels() { final NodeList<Element> labels = getLabels(); for (int i = 0; i < labels.length; i++) { show(labels.getAt(i)); } } @Inject  DataTypeListItemView(final HTMLDivElement view,
                                final TranslationService translationService,
                                final @DMNEditor ReadOnlyProvider readOnlyProvider); @Override void init(final DataTypeListItem presenter); @Override HTMLElement getElement(); @Override void toggleArrow(final boolean show); @Override void expand(); @Override void collapse(); @Override void showEditButton(); @Override void showSaveButton(); @Override void enableFocusMode(); @Override void disableFocusMode(); @Override boolean isOnFocusMode(); @Override String getName(); @Override void setName(final String name); @Override void showDataTypeNameInput(); @Override void hideDataTypeNameInput(); @Override void setupSelectComponent(final DataTypeSelect typeSelect); @Override void setupConstraintComponent(final DataTypeConstraint dataTypeConstraintComponent); @Override void setupListComponent(final SmallSwitchComponent dataTypeListComponent); @Override void showListContainer(); @Override void hideListContainer(); @Override void showListYesLabel(); @Override void hideListYesLabel(); @Override boolean isCollapsed(); @Override void setDataType(final DataType dataType); static final String UUID_ATTR; static final String NAME_DATA_FIELD; static final String PARENT_UUID_ATTR; }