public interface

Text

implements CharacterData
com.google.gwt.xml.client.Text
Known Indirect Subclasses

Class Overview

This interface describes text nodes, as might occur between tags. These may also be CDATASection nodes.

Summary

[Expand]
Inherited Constants
From interface com.google.gwt.xml.client.Node
Public Methods
abstract Text splitText(int offset)
Splits the node into two text nodes.
[Expand]
Inherited Methods
From interface com.google.gwt.xml.client.CharacterData
From interface com.google.gwt.xml.client.Node

Public Methods

public abstract Text splitText (int offset)

Splits the node into two text nodes. The current node is truncated to offset, and the new node is inserted as the next sibling. The new node created is also returned.

Parameters
offset how far from the beginning to start splitting
Returns
  • new Text node containing the data after offset