|
||||||||||
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 |
foldHandlerChanged(Buffer buffer)
Called to notify the text area that folds need to be collapsed if the "collapseFolds" property is set. |
void |
foldLevelChanged(Buffer buffer,
int startLine,
int endLine)
Called when line fold levels change. |
void |
preContentRemoved(Buffer buffer,
int startLine,
int offset,
int numLines,
int length)
Called when text is about to be removed from the buffer, but is still present. |
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 questionstartLine
- The start line numberendLine
- The end line numberpublic 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 preContentRemoved(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 to be removedlength
- The number of characters to be removedpublic void transactionComplete(Buffer buffer)
buffer
- The buffer in questionpublic void foldHandlerChanged(Buffer buffer)
buffer
- The buffer in question
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |