public abstract static class DocumentFilter.FilterBypass
extends Object
Used as a way to circumvent calling back into the Document to
change it. Document implementations that wish to support
a DocumentFilter must provide an implementation that will
not callback into the DocumentFilter when the following methods
are invoked from the DocumentFilter.
Returns the Document the mutation is occurring on.
Returns:
Document that remove/insertString will operate on
remove
public abstract void remove(int offset,
int length)
throws BadLocationException
Removes the specified region of text, bypassing the
DocumentFilter.
Parameters:
offset - the offset from the beginning >= 0
length - the number of characters to remove >= 0
Throws:
BadLocationException - some portion of the removal range
was not a valid part of the document. The location in the
exception is the first bad position encountered.