public abstract class BufferAdapter extends java.lang.Object implements BufferListener
BufferListener
interface.Constructor and Description |
---|
BufferAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
bufferLoaded(JEditBuffer buffer)
Called to notify the text area that the buffer has been reloaded.
|
void |
contentInserted(JEditBuffer buffer,
int startLine,
int offset,
int numLines,
int length)
Called when text is inserted into the buffer.
|
void |
contentRemoved(JEditBuffer buffer,
int startLine,
int offset,
int numLines,
int length)
Called when text is removed from the buffer.
|
void |
foldHandlerChanged(JEditBuffer buffer)
Called to notify the text area that folds need to be collapsed if
the "collapseFolds" property is set.
|
void |
foldLevelChanged(JEditBuffer buffer,
int start,
int end)
Called when line fold levels change.
|
void |
preContentInserted(JEditBuffer buffer,
int startLine,
int offset,
int numLines,
int length)
Called when text is about to be inserted in the buffer.
|
void |
preContentRemoved(JEditBuffer 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(JEditBuffer buffer)
Called after an undo or compound edit has finished.
|
public void foldLevelChanged(JEditBuffer buffer, int start, int end)
foldLevelChanged
in interface BufferListener
buffer
- The buffer in questionstart
- The start line numberend
- The end line numberpublic void contentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length)
contentInserted
in interface BufferListener
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 preContentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length)
preContentInserted
in interface BufferListener
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 preContentRemoved(JEditBuffer buffer, int startLine, int offset, int numLines, int length)
preContentRemoved
in interface BufferListener
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 contentRemoved(JEditBuffer buffer, int startLine, int offset, int numLines, int length)
contentRemoved
in interface BufferListener
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(JEditBuffer buffer)
transactionComplete
in interface BufferListener
buffer
- The buffer in questionpublic void foldHandlerChanged(JEditBuffer buffer)
foldHandlerChanged
in interface BufferListener
buffer
- The buffer in questionpublic void bufferLoaded(JEditBuffer buffer)
bufferLoaded
in interface BufferListener
buffer
- The buffer in question