java.lang.Object
org.gjt.sp.jedit.buffer.BufferAdapter
org.gjt.sp.jedit.textarea.ElasticTabStopBufferListener
- All Implemented Interfaces:
BufferListener
Buffer Listener for Elastic Tabstops.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length) Called when text is inserted into the buffer.voidcontentRemoved(JEditBuffer buffer, int startLine, int offset, int numLines, int length) Called when text is removed from the buffer.voidpreContentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length) Called when text is about to be inserted in the buffer.voidpreContentRemoved(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.voidtransactionComplete(JEditBuffer buffer) Called after an undo or compound edit has finished.Methods inherited from class org.gjt.sp.jedit.buffer.BufferAdapter
bufferLoaded, foldHandlerChanged, foldLevelChanged
-
Constructor Details
-
ElasticTabStopBufferListener
-
-
Method Details
-
contentInserted
public void contentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length) Description copied from class:BufferAdapterCalled when text is inserted into the buffer.- Specified by:
contentInsertedin interfaceBufferListener- Overrides:
contentInsertedin classBufferAdapter- Parameters:
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 inserted
-
contentRemoved
Called when text is removed from the buffer.- Specified by:
contentRemovedin interfaceBufferListener- Overrides:
contentRemovedin classBufferAdapter- Parameters:
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 removed- Since:
- jEdit 4.3pre3
-
transactionComplete
Description copied from class:BufferAdapterCalled 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.)- Specified by:
transactionCompletein interfaceBufferListener- Overrides:
transactionCompletein classBufferAdapter- Parameters:
buffer- The buffer in question
-
preContentInserted
public void preContentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length) Description copied from class:BufferAdapterCalled when text is about to be inserted in the buffer.- Specified by:
preContentInsertedin interfaceBufferListener- Overrides:
preContentInsertedin classBufferAdapter- Parameters:
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 inserted
-
preContentRemoved
public void preContentRemoved(JEditBuffer buffer, int startLine, int offset, int numLines, int length) Description copied from class:BufferAdapterCalled when text is about to be removed from the buffer, but is still present.- Specified by:
preContentRemovedin interfaceBufferListener- Overrides:
preContentRemovedin classBufferAdapter- Parameters:
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 removed
-