Class TextEdit

  • Direct Known Subclasses:
    AnnotatedTextEdit

    public class TextEdit
    extends java.lang.Object
    A textual edit applicable to a text document.
    • Constructor Summary

      Constructors 
      Constructor Description
      TextEdit()  
      TextEdit​(Range range, java.lang.String newText)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getNewText()
      The string to be inserted.
      Range getRange()
      The range of the text document to be manipulated.
      int hashCode()  
      void setNewText​(java.lang.String newText)
      The string to be inserted.
      void setRange​(Range range)
      The range of the text document to be manipulated.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TextEdit

        public TextEdit()
      • TextEdit

        public TextEdit​(Range range,
                        java.lang.String newText)
    • Method Detail

      • getRange

        public Range getRange()
        The range of the text document to be manipulated. To insert text into a document create a range where start === end.
      • setRange

        public void setRange​(Range range)
        The range of the text document to be manipulated. To insert text into a document create a range where start === end.
      • getNewText

        public java.lang.String getNewText()
        The string to be inserted. For delete operations use an empty string.
      • setNewText

        public void setNewText​(java.lang.String newText)
        The string to be inserted. For delete operations use an empty string.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object