| java.lang.Object org.gjt.sp.jedit.buffer.BufferAdapter
BufferAdapter | abstract public class BufferAdapter implements BufferListener(Code) | | An adapter you can subclass to avoid having to implement all the methods
of the
BufferListener interface.
author: Slava Pestov version: $Id: BufferAdapter.java 10708 2007-09-21 19:41:03Z kpouer $ since: jEdit 4.3pre3 |
Method Summary | |
public void | bufferLoaded(JEditBuffer buffer) Called to notify the text area that the buffer has been reloaded. | public void | contentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length) Called when text is inserted into the buffer. | public void | contentRemoved(JEditBuffer buffer, int startLine, int offset, int numLines, int length) Called when text is removed from the buffer. | public void | foldHandlerChanged(JEditBuffer buffer) Called to notify the text area that folds need to be collapsed if
the "collapseFolds" property is set. | public void | foldLevelChanged(JEditBuffer buffer, int start, int end) Called when line fold levels change. | public void | preContentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length) Called when text is about to be inserted in the buffer. | public 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. | public void | transactionComplete(JEditBuffer buffer) Called after an undo or compound edit has finished. |
bufferLoaded | public void bufferLoaded(JEditBuffer buffer)(Code) | | Called to notify the text area that the buffer has been reloaded.
Parameters: buffer - The buffer in question since: jEdit 4.3pre3 |
contentInserted | public void contentInserted(JEditBuffer 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.3pre3 |
contentRemoved | public void contentRemoved(JEditBuffer 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.3pre3 |
foldHandlerChanged | public void foldHandlerChanged(JEditBuffer 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.3pre3 |
foldLevelChanged | public void foldLevelChanged(JEditBuffer 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.3pre3 |
preContentInserted | public void preContentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length)(Code) | | Called when text is about to be inserted in 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.3pre11 |
preContentRemoved | public void preContentRemoved(JEditBuffer 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.3pre3 |
transactionComplete | public void transactionComplete(JEditBuffer 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.3pre3 |
|
|