Class TextEvent


  • public class TextEvent
    extends Object
    An event that characterizes a change in canvas text
    Author:
    Kiyut
    • Constructor Detail

      • TextEvent

        public TextEvent​(int offset,
                         int length,
                         int type)
        Creates a new instance of TextDocumentEvent
        Parameters:
        offset - the Offset
        length - the Length
        type - one of the value CHANGE, INSERT, REMOVE
    • Method Detail

      • getOffset

        public int getOffset()
        Return the offset of the modification occurred
        Returns:
        the offset of the modification occurred
      • getLength

        public int getLength()
        Return the length of the modification occurred
        Returns:
        the offset of the modification occurred
      • getType

        public int getType()
        Return the type of modification (CHANGE,INSERT,REMOVE)
        Returns:
        the type of modification