public class XMLEditorKit extends DefaultEditorKit
Modifier and Type | Class and Description |
---|---|
protected class |
XMLEditorKit.XMLViewFactory
A simple view factory implementation.
|
DefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteAction
Modifier and Type | Field and Description |
---|---|
protected XMLContext |
context |
protected ViewFactory |
factory |
static 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 |
---|---|
Object |
clone() |
Document |
createDefaultDocument() |
String |
getContentType()
Get the MIME type of the data that this
kit represents support for.
|
XMLContext |
getStylePreferences() |
ViewFactory |
getViewFactory() |
void |
install(JEditorPane c)
Overriden to set the JEditorPane font to match with the XMLContext
|
createCaret, getActions, read, read, write, write
public static final String XML_MIME_TYPE
protected XMLContext context
protected ViewFactory factory
public XMLEditorKit()
public XMLEditorKit(XMLContext context)
context
- XMLContextpublic XMLContext getStylePreferences()
public void install(JEditorPane c)
public String getContentType()
text/xml
.getContentType
in class DefaultEditorKit
public Document createDefaultDocument()
createDefaultDocument
in class DefaultEditorKit
public ViewFactory getViewFactory()
getViewFactory
in class DefaultEditorKit
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.