@JsType(isNative=true, name="Text", namespace="<global>") public final class TextNode extends BaseNode
BaseEventTarget.EventListenerCallback
Modifier and Type | Method and Description |
---|---|
String |
getData()
Returns the textual data contained in this object.
|
int |
length()
Returns the value representing the size of the string contained in data.
|
void |
setData(String data)
Sets the textual data contained in this object.
|
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getTextContent, hasChildNodes, insertBefore, removeAllChildren, removeChild, setNodeValue, setTextContent
addEventListener, removeEventListener
@JsProperty public String getData()
@JsProperty public void setData(String data)
data
- the textual data contained in this object@JsProperty(name="length") public int length()