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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
preContentInserted
(JEditBuffer buffer, int startLine, int offset, int numLines, int length) Called when text is about to be inserted in the buffer.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 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:BufferAdapter
Called when text is inserted into the buffer.- Specified by:
contentInserted
in interfaceBufferListener
- Overrides:
contentInserted
in 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:
contentRemoved
in interfaceBufferListener
- Overrides:
contentRemoved
in 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:BufferAdapter
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.)- Specified by:
transactionComplete
in interfaceBufferListener
- Overrides:
transactionComplete
in 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:BufferAdapter
Called when text is about to be inserted in the buffer.- Specified by:
preContentInserted
in interfaceBufferListener
- Overrides:
preContentInserted
in 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:BufferAdapter
Called when text is about to be removed from the buffer, but is still present.- Specified by:
preContentRemoved
in interfaceBufferListener
- Overrides:
preContentRemoved
in 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
-