Package rocks.xmpp.extensions.rtt.model
Class RealTimeText.EraseText
- java.lang.Object
-
- rocks.xmpp.extensions.rtt.model.RealTimeText.Action
-
- rocks.xmpp.extensions.rtt.model.RealTimeText.EraseText
-
- Enclosing class:
- RealTimeText
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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getNumberOfCharacters()
Indicates, how many characters are removed before the position.Integer
getPosition()
Gets the character position.String
toString()
-
-
-
Constructor Detail
-
EraseText
public EraseText()
Erases one character from the end of the text.
-
EraseText
public EraseText(Integer n)
- Parameters:
n
- The number of characters, which are erased from the end of the message.
-
-
Method Detail
-
getPosition
public final Integer getPosition()
Gets the character position.- Returns:
- The position.
-
getNumberOfCharacters
public final Integer getNumberOfCharacters()
Indicates, how many characters are removed before the position.- Returns:
- The number of characters to be removed.
- See Also:
getPosition()
-
-