|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gjt.sp.jedit.buffer.BufferAdapter
public abstract class BufferAdapter
An adapter you can subclass to avoid having to implement all the methods
of the BufferListener interface.
| Constructor Summary | |
|---|---|
BufferAdapter()
|
|
| 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 start,
int end)
Called when line fold levels change. |
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 BufferAdapter()
| Method Detail |
|---|
public void foldLevelChanged(JEditBuffer buffer,
int start,
int end)
foldLevelChanged in interface BufferListenerbuffer - The buffer in questionstart - The start line numberend - The end line number
public void contentInserted(JEditBuffer buffer,
int startLine,
int offset,
int numLines,
int length)
contentInserted in interface BufferListenerbuffer - 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(JEditBuffer buffer,
int startLine,
int offset,
int numLines,
int length)
preContentRemoved in interface BufferListenerbuffer - 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(JEditBuffer buffer,
int startLine,
int offset,
int numLines,
int length)
contentRemoved in interface BufferListenerbuffer - 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 BufferListenerbuffer - The buffer in questionpublic void foldHandlerChanged(JEditBuffer buffer)
foldHandlerChanged in interface BufferListenerbuffer - The buffer in questionpublic void bufferLoaded(JEditBuffer buffer)
bufferLoaded in interface BufferListenerbuffer - The buffer in question
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||