Example usage for Java javax.swing.text AbstractDocument fields, constructors, methods, implement or subclass
The text is from its open source code.
String | ParagraphElementName Name of elements used to represent paragraphs |
String | ContentElementName Name of elements used to represent content |
String | SectionElementName Name of elements used to hold sections (lines/paragraphs). |
String | ElementNameAttribute Name of the attribute used to specify element names. |
void | addDocumentListener(DocumentListener listener) Adds a document listener for notification of any changes. |
int | getLength() Returns the length of the data. |
void | insertString(int offs, String str, AttributeSet a) Inserts some content into the document. |
void | remove(int offs, int len) Removes some content from the document. |
void | replace(int offset, int length, String text, AttributeSet attrs) Deletes the region of text from offset to offset + length , and replaces it with text . |
void | setDocumentFilter(DocumentFilter filter) Sets the DocumentFilter . |