|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A interface for notification of changes to buffer text. While the
BufferUpdate
EditBus message is used for
general buffer state changes, this interface is used for events which are
fired frequently, or for which performance is essential.
Because this interface is subject to change in the future, you
should subclass BufferChangeAdapter
instead of
implementing it directly.
Method Summary | |
void |
contentInserted(Buffer buffer,
int startLine,
int offset,
int numLines,
int length)
Called when text is inserted into the buffer. |
void |
contentRemoved(Buffer buffer,
int startLine,
int offset,
int numLines,
int length)
Called when text is removed from the buffer. |
void |
foldLevelChanged(Buffer buffer,
int startLine,
int endLine)
Called when line fold levels change. |
void |
transactionComplete(Buffer buffer)
Called after an undo or compound edit has finished. |
Method Detail |
public void foldLevelChanged(Buffer buffer, int startLine, int endLine)
buffer
- The buffer in questionpublic void contentInserted(Buffer buffer, int startLine, int offset, int numLines, int length)
buffer
- The buffer in questionstartLine
- The first lineoffset
- The start offset, from the beginning of the buffernumLines
- The number of lines insertedlength
- The number of characters insertedpublic void contentRemoved(Buffer buffer, int startLine, int offset, int numLines, int length)
buffer
- The buffer in questionstartLine
- The first lineoffset
- The start offset, from the beginning of the buffernumLines
- The number of lines removedlength
- The number of characters removedpublic void transactionComplete(Buffer buffer)
buffer
- The buffer in question
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |