Java javax.swing.text AbstractDocument fields, constructors, methods, implement or subclass

Example usage for Java javax.swing.text AbstractDocument fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing.text AbstractDocument.

The text is from its open source code.

Field

StringParagraphElementName
Name of elements used to represent paragraphs
StringContentElementName
Name of elements used to represent content
StringSectionElementName
Name of elements used to hold sections (lines/paragraphs).
StringElementNameAttribute
Name of the attribute used to specify element names.

Method

voidaddDocumentListener(DocumentListener listener)
Adds a document listener for notification of any changes.
intgetLength()
Returns the length of the data.
voidinsertString(int offs, String str, AttributeSet a)
Inserts some content into the document.
voidremove(int offs, int len)
Removes some content from the document.
voidreplace(int offset, int length, String text, AttributeSet attrs)
Deletes the region of text from offset to offset + length, and replaces it with text.
voidsetDocumentFilter(DocumentFilter filter)
Sets the DocumentFilter.