PAnchor extends PFocusWidget { public void setHTML(final String html) { if (Objects.equals(this.html, html)) return; this.html = html; this.text = null; if (initialized) saveUpdate(ServerToClientModel.HTML, html); } protected  PAnchor(); protected  PAnchor(final String text); protected  PAnchor(final String text, final String href); String getHref(); void setHref(final String href); String getText(); void setText(final String text); String getHTML(); void setHTML(final String html); @Override String dumpDOM();  }
@Test public void testSetHtml() { final PAnchor anchor = Element.newPAnchor(); assertNull(anchor.getHTML()); assertNull(anchor.getText()); anchor.setHTML("html"); assertEquals("html", anchor.getHTML()); assertNull(anchor.getText()); }