Class XMLEditorKit
- java.lang.Object
-
- javax.swing.text.EditorKit
-
- javax.swing.text.DefaultEditorKit
-
- org.apache.batik.util.gui.xmleditor.XMLEditorKit
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class XMLEditorKit extends javax.swing.text.DefaultEditorKitThis is the set of things needed by a text component to be a reasonably functioning editor for xml type document.- Version:
- $Id: XMLEditorKit.java 1733416 2016-03-03 07:07:13Z gadams $
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classXMLEditorKit.XMLViewFactoryA simple view factory implementation.-
Nested classes/interfaces inherited from class javax.swing.text.DefaultEditorKit
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
-
-
Field Summary
Fields Modifier and Type Field Description protected XMLContextcontextprotected javax.swing.text.ViewFactoryfactorystatic java.lang.StringXML_MIME_TYPE-
Fields inherited from class javax.swing.text.DefaultEditorKit
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 Summary
Constructors Constructor Description XMLEditorKit()Creates a new instance of XMLEditorKitXMLEditorKit(XMLContext context)Creates a new instance of XMLEditorKit
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()javax.swing.text.DocumentcreateDefaultDocument()java.lang.StringgetContentType()Get the MIME type of the data that this kit represents support for.XMLContextgetStylePreferences()javax.swing.text.ViewFactorygetViewFactory()voidinstall(javax.swing.JEditorPane c)Overriden to set the JEditorPane font to match with the XMLContext
-
-
-
Field Detail
-
XML_MIME_TYPE
public static final java.lang.String XML_MIME_TYPE
- See Also:
- Constant Field Values
-
context
protected XMLContext context
-
factory
protected javax.swing.text.ViewFactory factory
-
-
Constructor Detail
-
XMLEditorKit
public XMLEditorKit()
Creates a new instance of XMLEditorKit
-
XMLEditorKit
public XMLEditorKit(XMLContext context)
Creates a new instance of XMLEditorKit- Parameters:
context- XMLContext
-
-
Method Detail
-
getStylePreferences
public XMLContext getStylePreferences()
- Returns:
- XMLContext
-
install
public void install(javax.swing.JEditorPane c)
Overriden to set the JEditorPane font to match with the XMLContext- Overrides:
installin classjavax.swing.text.EditorKit
-
getContentType
public java.lang.String getContentType()
Get the MIME type of the data that this kit represents support for. This kit supports the typetext/xml.- Overrides:
getContentTypein classjavax.swing.text.DefaultEditorKit
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjavax.swing.text.EditorKit
-
createDefaultDocument
public javax.swing.text.Document createDefaultDocument()
- Overrides:
createDefaultDocumentin classjavax.swing.text.DefaultEditorKit
-
getViewFactory
public javax.swing.text.ViewFactory getViewFactory()
- Overrides:
getViewFactoryin classjavax.swing.text.DefaultEditorKit
-
-