PAnchor extends PFocusWidget { public void setText(final String text) { if (Objects.equals(this.text, text)) return; this.text = text; this.html = null; if (initialized) saveUpdate(ServerToClientModel.TEXT, text); } 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 testSetText() { final PAnchor anchor = Element.newPAnchor(""); assertEquals("", anchor.getText()); assertNull(anchor.getHTML()); anchor.setText("Text"); assertEquals("Text", anchor.getText()); assertNull(anchor.getHTML()); }