Class 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 Text

    Supports 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 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.
      • EraseText

        public EraseText​(Integer n,
                         Integer p)
        Parameters:
        n - The number of characters, which are erased before the position.
        p - The character position.
    • 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()