com.jmex.bui.text
Interface Document.Listener

All Known Implementing Classes:
BPasswordField, BTextField
Enclosing class:
Document

public static interface Document.Listener

Used to listen for changes to this document.


Method Summary
 void textInserted(Document document, int offset, int length)
          Called when text is inserted into a document.
 void textRemoved(Document document, int offset, int length)
          Called when text is removed from a document.
 

Method Detail

textInserted

void textInserted(Document document,
                  int offset,
                  int length)
Called when text is inserted into a document. The text will have already been inserted into the document.

Parameters:
document - the document into which text was inserted.
offset - the offset into the document of the inserted text.
length - the length of the inserted text.

textRemoved

void textRemoved(Document document,
                 int offset,
                 int length)
Called when text is removed from a document. The text will have already been removed from the document.

Parameters:
document - the document from which text was removed.
offset - the offset into the document of the removed text.
length - the length of the removed text.


Copyright © 2008 Michael Bayne. All Rights Reserved.