| java.lang.Object org.gjt.sp.jedit.buffer.BufferChangeAdapter
BufferChangeAdapter | abstract public class BufferChangeAdapter implements BufferChangeListener(Code) | | An adapter you can subclass to avoid having to implement all the methods
of the
BufferChangeListener interface.
author: Slava Pestov version: $Id: BufferChangeAdapter.java 5147 2004-11-08 04:01:22Z spestov $ since: jEdit 4.0pre1 |
Method Summary | |
public void | bufferLoaded(Buffer buffer) Called to notify the text area that the buffer has been reloaded. | public void | contentInserted(Buffer buffer, int startLine, int offset, int numLines, int length) Called when text is inserted into the buffer. | public void | contentRemoved(Buffer buffer, int startLine, int offset, int numLines, int length) Called when text is removed from the buffer. | public void | foldHandlerChanged(Buffer buffer) Called to notify the text area that folds need to be collapsed if
the "collapseFolds" property is set. | public void | foldLevelChanged(Buffer buffer, int start, int end) Called when line fold levels change. | public 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. | public void | transactionComplete(Buffer buffer) Called after an undo or compound edit has finished. |
bufferLoaded | public void bufferLoaded(Buffer buffer)(Code) | | Called to notify the text area that the buffer has been reloaded.
Parameters: buffer - The buffer in question since: jEdit 4.3pre1 |
contentInserted | public void contentInserted(Buffer buffer, int startLine, int offset, int numLines, int length)(Code) | | Called when text is inserted into the buffer.
Parameters: buffer - The buffer in question Parameters: startLine - The first line Parameters: offset - The start offset, from the beginning of the buffer Parameters: numLines - The number of lines inserted Parameters: length - The number of characters inserted since: jEdit 4.0pre1 |
contentRemoved | public void contentRemoved(Buffer buffer, int startLine, int offset, int numLines, int length)(Code) | | Called when text is removed from the buffer.
Parameters: buffer - The buffer in question Parameters: startLine - The first line Parameters: offset - The start offset, from the beginning of the buffer Parameters: numLines - The number of lines removed Parameters: length - The number of characters removed since: jEdit 4.0pre1 |
foldHandlerChanged | public void foldHandlerChanged(Buffer buffer)(Code) | | Called to notify the text area that folds need to be collapsed if
the "collapseFolds" property is set. This method is called after the
buffer has been loaded, and also if the user changes the fold
handler.
Parameters: buffer - The buffer in question since: jEdit 4.2pre2 |
foldLevelChanged | public void foldLevelChanged(Buffer buffer, int start, int end)(Code) | | Called when line fold levels change.
Parameters: buffer - The buffer in question Parameters: start - The start line number Parameters: end - The end line number since: jEdit 4.0pre1 |
preContentRemoved | public void preContentRemoved(Buffer buffer, int startLine, int offset, int numLines, int length)(Code) | | Called when text is about to be removed from the buffer, but is
still present.
Parameters: buffer - The buffer in question Parameters: startLine - The first line Parameters: offset - The start offset, from the beginning of the buffer Parameters: numLines - The number of lines to be removed Parameters: length - The number of characters to be removed since: jEdit 4.2pre1 |
transactionComplete | public void transactionComplete(Buffer buffer)(Code) | | Called after an undo or compound edit has finished. The text area
uses this event to queue up and collapse cleanup operations so they
are only run once during a long transaction (such as a "Replace All"
operation.)
Parameters: buffer - The buffer in question since: jEdit 4.0pre6 |
|
|