|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.audit.model.TextDocumentAdapter.TextBufferTracker
A model which tracks edits to a text buffer.
Nested Class Summary | |
static class |
TextDocumentAdapter.TextBufferTracker.Edit
A representation of a single edit. |
Constructor Summary | |
protected |
TextDocumentAdapter.TextBufferTracker()
|
Method Summary | |
int |
getDeltaLength(int offset,
int length)
Gets the difference between the original and current lengths of a region in the tracked buffer. |
int |
getDeltaOffset(int offset)
Gets the distance between the original and current offsets of a character in the tracked buffer. |
java.util.List |
getEdits(int offset,
int length)
Gets a list of edits in a region. |
boolean |
isModified()
Gets whether the tracked buffer has been modified since tracking began. |
void |
textInserted(int offset,
int count,
char[] text)
|
void |
textRemoved(int offset,
int count,
char[] text)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected TextDocumentAdapter.TextBufferTracker()
Method Detail |
public boolean isModified()
public int getDeltaOffset(int offset)
public int getDeltaLength(int offset, int length)
offset
- The original offset of the region.length
- The original length of the region.
public java.util.List getEdits(int offset, int length)
offset
- The original offset of the region.length
- The original length of the region.
TextDocumentAdapter.TextBufferTracker.Edit
s that occurred in the region.public void textInserted(int offset, int count, char[] text)
public void textRemoved(int offset, int count, char[] text)
public java.lang.String toString()
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.