public static final class RealTimeText.InsertText extends RealTimeText.Action
The implementation of the <t/> element.
4.6.3.1 Element
<t/>- Insert TextSupports the transmission of text, including key presses, and text block inserts.
| Constructor and Description |
|---|
InsertText(java.lang.CharSequence text) |
InsertText(java.lang.CharSequence text,
java.lang.Integer position) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getPosition()
Gets the character position.
|
java.lang.String |
getText()
Gets the text.
|
java.lang.String |
toString() |
public InsertText(java.lang.CharSequence text)
text - The text.public InsertText(java.lang.CharSequence text,
java.lang.Integer position)
text - The text.position - The position, where the text is inserted.public final java.lang.String getText()
Gets the text.
public final java.lang.Integer getPosition()
Gets the character position.
public final java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014–2019 XMPP.rocks. All rights reserved.