public class XMLEditorKit
extends javax.swing.text.DefaultEditorKit
Modifier and Type | Class and Description |
---|---|
protected class |
XMLEditorKit.XMLViewFactory
A simple view factory implementation.
|
javax.swing.text.DefaultEditorKit.BeepAction, javax.swing.text.DefaultEditorKit.CopyAction, javax.swing.text.DefaultEditorKit.CutAction, javax.swing.text.DefaultEditorKit.DefaultKeyTypedAction, javax.swing.text.DefaultEditorKit.InsertBreakAction, javax.swing.text.DefaultEditorKit.InsertContentAction, javax.swing.text.DefaultEditorKit.InsertTabAction, javax.swing.text.DefaultEditorKit.PasteAction
Modifier and Type | Field and Description |
---|---|
protected XMLContext |
context |
protected javax.swing.text.ViewFactory |
factory |
static java.lang.String |
XML_MIME_TYPE |
backwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deleteNextWordAction, deletePrevCharAction, deletePrevWordAction, downAction, endAction, endLineAction, EndOfLineStringProperty, endParagraphAction, endWordAction, forwardAction, insertBreakAction, insertContentAction, insertTabAction, nextWordAction, pageDownAction, pageUpAction, pasteAction, previousWordAction, readOnlyAction, selectAllAction, selectionBackwardAction, selectionBeginAction, selectionBeginLineAction, selectionBeginParagraphAction, selectionBeginWordAction, selectionDownAction, selectionEndAction, selectionEndLineAction, selectionEndParagraphAction, selectionEndWordAction, selectionForwardAction, selectionNextWordAction, selectionPreviousWordAction, selectionUpAction, selectLineAction, selectParagraphAction, selectWordAction, upAction, writableAction
Constructor and Description |
---|
XMLEditorKit()
Creates a new instance of XMLEditorKit
|
XMLEditorKit(XMLContext context)
Creates a new instance of XMLEditorKit
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
javax.swing.text.Document |
createDefaultDocument() |
java.lang.String |
getContentType()
Get the MIME type of the data that this
kit represents support for.
|
XMLContext |
getStylePreferences() |
javax.swing.text.ViewFactory |
getViewFactory() |
void |
install(javax.swing.JEditorPane c)
Overriden to set the JEditorPane font to match with the XMLContext
|
public static final java.lang.String XML_MIME_TYPE
protected XMLContext context
protected javax.swing.text.ViewFactory factory
public XMLEditorKit()
public XMLEditorKit(XMLContext context)
context
- XMLContextpublic XMLContext getStylePreferences()
public void install(javax.swing.JEditorPane c)
install
in class javax.swing.text.EditorKit
public java.lang.String getContentType()
text/xml
.getContentType
in class javax.swing.text.DefaultEditorKit
public java.lang.Object clone()
clone
in class javax.swing.text.EditorKit
public javax.swing.text.Document createDefaultDocument()
createDefaultDocument
in class javax.swing.text.DefaultEditorKit
public javax.swing.text.ViewFactory getViewFactory()
getViewFactory
in class javax.swing.text.DefaultEditorKit
Copyright © 2022 Apache Software Foundation. All Rights Reserved.