| Constructor and Description |
|---|
DefaultTextEdit(int offset,
java.lang.String oldValue,
java.lang.String newValue)
Creates a new
DefaultTextEdit. |
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
Returns the length of the text to replace with the new value.
|
java.lang.String |
getNewValue()
Returns the new value that should replace the old value.
|
int |
getOffset()
Returns the location of the old value within the text.
|
java.lang.String |
getOldValue()
Returns the value that was found within the text that should be replaced by the new value.
|
java.lang.String |
toString() |
public DefaultTextEdit(int offset,
java.lang.String oldValue,
java.lang.String newValue)
DefaultTextEdit.offset - The location of the old value within the textoldValue - the value that was found within the text that should be replaced by the new valuenewValue - The new value that should replace the old valuepublic int getLength()
public java.lang.String getNewValue()
getNewValue in interface TextEditpublic int getOffset()
public java.lang.String getOldValue()
getOldValue in interface TextEditpublic java.lang.String toString()
toString in class java.lang.Object