public static final class RealTimeText.EraseText extends RealTimeText.Action
The implementation of the <e/>
element.
4.6.3.2 Element
<e/>
- Erase TextSupports the behavior of backspace key presses. Text is removed towards beginning of the message. This element is also used for all delete operations, including the backspace key, the delete key, and text block deletes.
Constructor and Description |
---|
EraseText()
Erases one character from the end of the text.
|
EraseText(java.lang.Integer n) |
EraseText(java.lang.Integer n,
java.lang.Integer p) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getNumberOfCharacters()
Indicates, how many characters are removed before the position.
|
java.lang.Integer |
getPosition()
Gets the character position.
|
java.lang.String |
toString() |
public EraseText()
Erases one character from the end of the text.
public EraseText(java.lang.Integer n)
n
- The number of characters, which are erased from the end of the message.public EraseText(java.lang.Integer n, java.lang.Integer p)
n
- The number of characters, which are erased before the position.p
- The character position.public final java.lang.Integer getPosition()
Gets the character position.
public final java.lang.Integer getNumberOfCharacters()
Indicates, how many characters are removed before the position.
getPosition()
public final java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014–2019 XMPP.rocks. All rights reserved.