public class XMLDocument extends PlainDocument
Note: The XML Editor package is based on the JavaEditorKit example as described in the article 'Customizing a Text Editor' by Timothy Prinzing . See: http://java.sun.com/products/jfc/tsc/articles/text/editor_kit/
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement| Modifier and Type | Field and Description |
|---|---|
static String |
AUTO_INDENTATION_ATTRIBUTE
Name of the attribute that specifies whether auto indentation is enabled.
|
static String |
TAG_COMPLETION_ATTRIBUTE
Name of the attribute that specifies whether tag-completion is enabled.
|
lineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
XMLDocument(JEditorPane editor)
Constructs the XML Document with a new GapContent buffer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
insertString(int off,
String str,
AttributeSet set)
Inserts some content into the document.
|
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertUpdate, removeUpdateaddDocumentListener, addUndoableEditListener, createBranchElement, createLeafElement, createPosition, dump, fireChangedUpdate, fireInsertUpdate, fireRemoveUpdate, fireUndoableEditUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, postRemoveUpdate, putProperty, readLock, readUnlock, remove, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlockpublic static final String TAG_COMPLETION_ATTRIBUTE
public static final String AUTO_INDENTATION_ATTRIBUTE
public XMLDocument(JEditorPane editor)
editor - the editor component.public void insertString(int off,
String str,
AttributeSet set)
throws BadLocationException
insertString in interface DocumentinsertString in class PlainDocumentBadLocationExceptionPlainDocument.insertString( int, String, AttributeSet)Copyright © 2022 WSO2. All rights reserved.