|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BufferChangeListener
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.
Nested Class Summary | |
---|---|
static class |
BufferChangeListener.Adapter
|
Method Summary | |
---|---|
void |
bufferLoaded(Buffer buffer)
Called to notify the text area that the buffer has been reloaded. |
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 |
---|
void foldLevelChanged(Buffer buffer, int startLine, int endLine)
buffer
- The buffer in questionstartLine
- The start line numberendLine
- The end line numbervoid 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 insertedvoid 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 removedvoid 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 removedvoid transactionComplete(Buffer buffer)
buffer
- The buffer in questionvoid foldHandlerChanged(Buffer buffer)
buffer
- The buffer in questionvoid bufferLoaded(Buffer buffer)
buffer
- The buffer in question
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |