/** * {@inheritDoc} */ @Override public Text createTextNode(final String data) { return new DomText(this, data); }
/** * {@inheritDoc} */ public Text createTextNode(final String data) { return new DomText(this, data); }
/** * {@inheritDoc} */ public Text createTextNode(final String data) { return new DomText(this, data); }
/** * {@inheritDoc} */ @Override public Text createTextNode(final String data) { return new DomText(this, data); }
/** * {@inheritDoc} */ public Text createTextNode(final String data) { return new DomText(this, data); }
/** * Creates a new text node split from another text node. This method allows * the derived type of the new text node to match the original node type. * * @param offset the character position at which to split the DomText node * @return the newly created Text node */ protected DomText createSplitTextNode(final int offset) { return new DomText(getPage(), getData().substring(offset)); }
/** * Creates a new text node split from another text node. This method allows * the derived type of the new text node to match the original node type. * * @param offset the character position at which to split the DomText node * @return the newly created Text node */ protected DomText createSplitTextNode(final int offset) { return new DomText(getPage(), getData().substring(offset)); }
/** * Creates a new text node split from another text node. This method allows * the derived type of the new text node to match the original node type. * * @param offset the character position at which to split the DomText node * @return the newly created Text node */ protected DomText createSplitTextNode(final int offset) { return new DomText(getPage(), getData().substring(offset)); }
/** * Creates a new text node split from another text node. This method allows * the derived type of the new text node to match the original node type. * * @param offset the character position at which to split the DomText node * @return the newly created Text node */ protected DomText createSplitTextNode(final int offset) { return new DomText(getPage(), getData().substring(offset)); }
/** * {@inheritDoc} */ @Override public void setTextContent(final String textContent) { removeAllChildren(); if (textContent != null && !textContent.isEmpty()) { appendChild(new DomText(getPage(), textContent)); } }
/** * The worker for setInnerText. * @param value the new value for the contents of this node */ protected void setInnerTextImpl(final String value) { final DomNode domNode = getDomNodeOrDie(); domNode.removeAllChildren(); if (value != null && !value.isEmpty()) { domNode.appendChild(new DomText(domNode.getPage(), value)); } }
/** * {@inheritDoc} */ public void setTextContent(final String textContent) { removeAllChildren(); appendChild(new DomText(getPage(), textContent)); }
/** * {@inheritDoc} */ public void setTextContent(final String textContent) { removeAllChildren(); appendChild(new DomText(getPage(), textContent)); }
/** * {@inheritDoc} */ public void setTextContent(final String textContent) { removeAllChildren(); appendChild(new DomText(getPage(), textContent)); }
private void initTextNode() { if (textNode_ == null) { final String value = getValue(); if (!org.apache.commons.lang3.StringUtils.isEmpty(value)) { final DomText text = new DomText(getDomNodeOrDie().getPage(), value); getDomNodeOrDie().appendChild(text); textNode_ = text.getScriptableObject(); } } }
/** * {@inheritDoc} */ @Override public Node jsxGet_lastChild() { if (getBrowserVersion().isFirefox()) { final DomText text = new DomText(getDomNodeOrDie().getPage(), jsxGet_nodeValue()); return (Node) text.getScriptObject(); } return null; } }
/** * {@inheritDoc} */ @Override public Node getLastChild() { if (getBrowserVersion().hasFeature(JS_ATTR_FIRST_LAST_CHILD_RETURNS_NULL)) { return null; } final DomText text = new DomText(getDomNodeOrDie().getPage(), getNodeValue()); return (Node) text.getScriptableObject(); }
/** * Sets the {@code text} property. * @param text the {@code text} property */ @JsxSetter public void setText(final String text) { final HtmlElement htmlElement = getDomNodeOrDie(); htmlElement.removeAllChildren(); final DomNode textChild = new DomText(htmlElement.getPage(), text); htmlElement.appendChild(textChild); final HtmlScript tmpScript = (HtmlScript) htmlElement; tmpScript.executeScriptIfNeeded(); }
/** * {@inheritDoc} */ @Override public Node jsxGet_lastChild() { if (getBrowserVersion().isFirefox()) { final DomText text = new DomText(getDomNodeOrDie().getPage(), jsxGet_nodeValue()); return (Node) text.getScriptObject(); } return null; } }
/** * {@inheritDoc} */ @Override public Node jsxGet_lastChild() { if (getBrowserVersion().isFirefox()) { final DomText text = new DomText(getDomNodeOrDie().getPage(), jsxGet_nodeValue()); return (Node) text.getScriptObject(); } return null; } }