public class ElasticTabStopBufferListener extends BufferAdapter
Constructor and Description |
---|
ElasticTabStopBufferListener(TextArea textArea) |
Modifier and Type | Method and Description |
---|---|
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 |
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.
|
bufferLoaded, foldHandlerChanged, foldLevelChanged
public ElasticTabStopBufferListener(TextArea textArea)
public void contentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length)
BufferAdapter
contentInserted
in interface BufferListener
contentInserted
in class BufferAdapter
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 insertedpublic void contentRemoved(JEditBuffer buffer, int startLine, int offset, int numLines, int length)
contentRemoved
in interface BufferListener
contentRemoved
in class BufferAdapter
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 removedpublic void transactionComplete(JEditBuffer buffer)
BufferAdapter
transactionComplete
in interface BufferListener
transactionComplete
in class BufferAdapter
buffer
- The buffer in questionpublic void preContentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length)
BufferAdapter
preContentInserted
in interface BufferListener
preContentInserted
in class BufferAdapter
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 insertedpublic void preContentRemoved(JEditBuffer buffer, int startLine, int offset, int numLines, int length)
BufferAdapter
preContentRemoved
in interface BufferListener
preContentRemoved
in class BufferAdapter
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