com.cometway.text
Interface ITextBufferListener

All Known Implementing Classes:
TextPointer

public interface ITextBufferListener

Listener interface for receiving notifications about changes to text buffers.


Method Summary
 void textChanged(ITextBuffer b, int start, int end)
          Called by text buffers when a portion of their contents have changed.
 void textMoved(ITextBuffer b, int start, int offset)
          Called by text buffers when a portion of their contents have moved.
 

Method Detail

textChanged

void textChanged(ITextBuffer b,
                 int start,
                 int end)
Called by text buffers when a portion of their contents have changed.

Parameters:
b - a reference to the text buffer that changed.
start - the starting index of the changed text.
end - the ending index of the changed text.

textMoved

void textMoved(ITextBuffer b,
               int start,
               int offset)
Called by text buffers when a portion of their contents have moved.

Parameters:
b - a reference to the text buffer that moved.
start - the starting index of the moved text.
offset - the relative number of characters the text has moved towards the end of the buffer.