@Test public void testInit() { final String url = "http: final String description = "My nice description."; final DMNExternalLink externalLink = new DMNExternalLink(); externalLink.setDescription(description); externalLink.setUrl(url); documentationLinkItem.init(externalLink); assertEquals(description, link.textContent); assertEquals(url, link.href); }
@Override public void init(final DMNExternalLink externalLink) { this.externalLink = externalLink; link.href = externalLink.getUrl(); link.textContent = externalLink.getDescription(); }
DocumentationLinkItem implements UberElemental<DMNExternalLink> { @Override public void init(final DMNExternalLink externalLink) { this.externalLink = externalLink; link.href = externalLink.getUrl(); link.textContent = externalLink.getDescription(); } }
DocumentationLinkItem implements UberElemental<DMNExternalLink> { @Override public void init(final DMNExternalLink externalLink) { this.externalLink = externalLink; link.href = externalLink.getUrl(); link.textContent = externalLink.getDescription(); } @Inject  DocumentationLinkItem(final HTMLDivElement item,
                                 final HTMLAnchorElement link,
                                 final HTMLAnchorElement deleteLink); }
DocumentationLinkItem implements UberElemental<DMNExternalLink> { @Override public void init(final DMNExternalLink externalLink) { this.externalLink = externalLink; link.href = externalLink.getUrl(); link.textContent = externalLink.getDescription(); } @Inject  DocumentationLinkItem(final HTMLDivElement item,
                                 final HTMLAnchorElement link,
                                 final HTMLAnchorElement deleteLink); @Override HTMLElement getElement(); @Override void init(final DMNExternalLink externalLink); @SuppressWarnings("unused") @EventHandler("deleteLink") void onDeleteLinkClick(final ClickEvent clickEvent); Consumer<DMNExternalLink> getOnDeleted(); void setOnDeleted(final Consumer<DMNExternalLink> onDeleted); }
DocumentationLinkItem implements UberElemental<DMNExternalLink> { @Override public void init(final DMNExternalLink externalLink) { this.externalLink = externalLink; link.href = externalLink.getUrl(); link.textContent = externalLink.getDescription(); } @Inject  DocumentationLinkItem(final HTMLDivElement item,
                                 final HTMLAnchorElement link,
                                 final HTMLAnchorElement deleteLink); @Override HTMLElement getElement(); @Override void init(final DMNExternalLink externalLink); @SuppressWarnings("unused") @EventHandler("deleteLink") void onDeleteLinkClick(final ClickEvent clickEvent); Consumer<DMNExternalLink> getOnDeleted(); void setOnDeleted(final Consumer<DMNExternalLink> onDeleted);  }