|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gjt.sp.jedit.buffer.BufferChangeAdapter
An adapter you can subclass to avoid having to implement all the methods
of the BufferChangeListener interface.
| Constructor Summary | |
BufferChangeAdapter()
|
|
| 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 start,
int end)
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BufferChangeAdapter()
| Method Detail |
public void foldLevelChanged(Buffer buffer,
int start,
int end)
foldLevelChanged in interface BufferChangeListenerbuffer - The buffer in questionstart - The start line numberend - The end line number
public void contentInserted(Buffer buffer,
int startLine,
int offset,
int numLines,
int length)
contentInserted in interface BufferChangeListenerbuffer - 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 inserted
public void preContentRemoved(Buffer buffer,
int startLine,
int offset,
int numLines,
int length)
preContentRemoved in interface BufferChangeListenerbuffer - 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 removed
public void contentRemoved(Buffer buffer,
int startLine,
int offset,
int numLines,
int length)
contentRemoved in interface BufferChangeListenerbuffer - 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)
transactionComplete in interface BufferChangeListenerbuffer - The buffer in questionpublic void foldHandlerChanged(Buffer buffer)
foldHandlerChanged in interface BufferChangeListenerbuffer - The buffer in question
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||