|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gjt.sp.jedit.buffer.BufferChangeListener.Adapter
public static class BufferChangeListener.Adapter
Constructor Summary | |
---|---|
BufferChangeListener.Adapter(BufferChangeListener delegate)
|
Method Summary | |
---|---|
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 startLine,
int endLine)
Called when line fold levels change. |
BufferChangeListener |
getDelegate()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferChangeListener.Adapter(BufferChangeListener delegate)
Method Detail |
---|
public BufferChangeListener getDelegate()
public void foldLevelChanged(JEditBuffer buffer, int startLine, int endLine)
foldLevelChanged
in interface BufferListener
buffer
- The buffer in questionstartLine
- The start line numberendLine
- 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 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 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 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |