Class TranscriptDocumentFilter
java.lang.Object
javax.swing.text.DocumentFilter
ca.phon.app.session.editor.view.transcript.TranscriptDocumentFilter
The default document filter for the
TranscriptDocument-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.text.DocumentFilter
DocumentFilter.FilterBypass -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAttribute key used for indicating custom filters for non-editable elements of the document. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentFiltergetCustomFilter(AttributeSet attrs) voidremove(DocumentFilter.FilterBypass fb, int offset, int length) voidreplace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet _attrs) static voidsetCustomFilter(MutableAttributeSet attrs, DocumentFilter filter) Methods inherited from class javax.swing.text.DocumentFilter
insertString
-
Field Details
-
ATTR_KEY_CUSTOM_FILTER
Attribute key used for indicating custom filters for non-editable elements of the document. The type of the attribute value should be ainvalid @link
{@link DocumentFilter)- See Also:
-
-
Constructor Details
-
TranscriptDocumentFilter
The constructor- Parameters:
doc- a reference to theTranscriptDocument
-
-
Method Details
-
remove
public void remove(DocumentFilter.FilterBypass fb, int offset, int length) throws BadLocationException - Overrides:
removein classDocumentFilter- Throws:
BadLocationException
-
replace
public void replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet _attrs) throws BadLocationException - Overrides:
replacein classDocumentFilter- Throws:
BadLocationException
-
getCustomFilter
-
setCustomFilter
-