@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Text")
public class Text
extends CharacterData
dataATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, nodeValue, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, textContent| Constructor and Description |
|---|
Text()
The Text() constructor returns a newly created Text object with the optional DOMString given in parameter as its textual content.
|
Text(java.lang.String data)
The Text() constructor returns a newly created Text object with the optional DOMString given in parameter as its textual content.
|
| Modifier and Type | Method and Description |
|---|---|
HTMLSlotElement |
assignedSlot()
The assignedSlot property of the Text interface returns the HTMLSlotElement object associated with the element.
|
Text |
splitText(int offset)
The Text.splitText() method breaks the Text node into two nodes at the specified offset, keeping both nodes in the tree as siblings.
|
java.lang.String |
wholeText()
The Text.wholeText read-only property returns the full text of all Text nodes logically adjacent to the node.
|
after, after, appendData, before, before, deleteData, insertData, length, nextElementSibling, previousElementSibling, remove, replaceData, replaceWith, replaceWith, substringDataappendChild, baseURI, childNodes, cloneNode, cloneNode, compareDocumentPosition, contains, firstChild, getRootNode, getRootNode, hasChildNodes, insertBefore, isConnected, isDefaultNamespace, isEqualNode, isSameNode, lastChild, lookupNamespaceURI, lookupPrefix, nextSibling, nodeName, nodeType, normalize, ownerDocument, parentElement, parentNode, previousSibling, removeChild, replaceChildaddEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, valuespublic Text(@Nonnull
java.lang.String data)
public Text()
@JsProperty(name="assignedSlot") @Nullable public HTMLSlotElement assignedSlot()
@JsProperty(name="wholeText") @Nonnull public java.lang.String wholeText()
@Nonnull public Text splitText(int offset)